1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 03:39:14 +00:00
OpenMW/components/terrain/material.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
690 B
C++
Raw Normal View History

#ifndef COMPONENTS_TERRAIN_MATERIAL_H
#define COMPONENTS_TERRAIN_MATERIAL_H
#include <osg/StateSet>
2015-06-02 23:18:36 +00:00
namespace osg
{
class Texture2D;
}
2022-05-14 01:58:00 +00:00
namespace Resource
{
2022-05-14 01:58:00 +00:00
class SceneManager;
}
namespace Terrain
{
struct TextureLayer
{
osg::ref_ptr<osg::Texture2D> mDiffuseMap;
osg::ref_ptr<osg::Texture2D> mNormalMap; // optional
2016-03-22 20:00:31 +00:00
bool mParallax;
2016-02-20 18:54:47 +00:00
bool mSpecular;
};
2022-05-14 01:58:00 +00:00
std::vector<osg::ref_ptr<osg::StateSet>> createPasses(bool useShaders, Resource::SceneManager* sceneManager,
2017-03-12 23:15:36 +00:00
const std::vector<TextureLayer>& layers, const std::vector<osg::ref_ptr<osg::Texture2D>>& blendmaps,
int blendmapScale, float layerTileSize);
}
#endif