1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +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-03 01:18:36 +02:00
namespace osg
{
class Texture2D;
}
2022-05-13 18:58:00 -07:00
namespace Resource
{
2022-05-13 18:58:00 -07:00
class SceneManager;
}
namespace Terrain
{
struct TextureLayer
{
osg::ref_ptr<osg::Texture2D> mDiffuseMap;
osg::ref_ptr<osg::Texture2D> mNormalMap; // optional
2016-03-22 21:00:31 +01:00
bool mParallax;
2016-02-20 19:54:47 +01:00
bool mSpecular;
};
2022-05-13 18:58:00 -07:00
std::vector<osg::ref_ptr<osg::StateSet>> createPasses(bool useShaders, Resource::SceneManager* sceneManager,
2017-03-13 00:15:36 +01:00
const std::vector<TextureLayer>& layers, const std::vector<osg::ref_ptr<osg::Texture2D>>& blendmaps,
int blendmapScale, float layerTileSize);
}
#endif