1 #ifndef COMPONENTS_TERRAIN_MATERIAL_H
2 #define COMPONENTS_TERRAIN_MATERIAL_H
4 #include <osgFX/Technique>
5 #include <osgFX/Effect>
34 const std::vector<TextureLayer>& layers,
35 const std::vector<osg::ref_ptr<osg::Texture2D> >& blendmaps,
int blendmapScale,
float layerTileSize);
45 const std::vector<TextureLayer>& layers,
46 const std::vector<osg::ref_ptr<osg::Texture2D> >& blendmaps,
int blendmapScale,
float layerTileSize);
56 const std::vector<TextureLayer>& layers,
57 const std::vector<osg::ref_ptr<osg::Texture2D> >& blendmaps,
int blendmapScale,
float layerTileSize);
bool mUseShaders
Definition: material.hpp:76
bool mParallax
Definition: material.hpp:26
Definition: material.hpp:52
bool mSpecular
Definition: material.hpp:27
osg::ref_ptr< osg::Texture2D > mDiffuseMap
Definition: material.hpp:24
Effect(bool useShaders, bool forcePerPixelLighting, bool clampLighting, Shader::ShaderManager *shaderManager, const std::vector< TextureLayer > &layers, const std::vector< osg::ref_ptr< osg::Texture2D > > &blendmaps, int blendmapScale, float layerTileSize)
Definition: material.cpp:175
virtual bool define_techniques()
Definition: material.cpp:189
virtual const char * effectAuthor() const
Definition: material.hpp:69
virtual void define_passes()
Definition: material.hpp:38
bool mClampLighting
Definition: material.hpp:78
virtual const char * effectDescription() const
Definition: material.hpp:65
FixedFunctionTechnique(const std::vector< TextureLayer > &layers, const std::vector< osg::ref_ptr< osg::Texture2D > > &blendmaps, int blendmapScale, float layerTileSize)
Definition: material.cpp:61
Shader::ShaderManager * mShaderManager
Definition: material.hpp:75
float mLayerTileSize
Definition: material.hpp:82
virtual const char * effectName() const
Definition: material.hpp:61
bool mForcePerPixelLighting
Definition: material.hpp:77
Definition: material.hpp:22
Reads shader template files and turns them into a concrete shader, based on a list of define's...
Definition: shadermanager.hpp:18
osg::ref_ptr< osg::Texture2D > mNormalMap
Definition: material.hpp:25
Definition: material.hpp:30
ShaderTechnique(Shader::ShaderManager &shaderManager, bool forcePerPixelLighting, bool clampLighting, const std::vector< TextureLayer > &layers, const std::vector< osg::ref_ptr< osg::Texture2D > > &blendmaps, int blendmapScale, float layerTileSize)
Definition: material.cpp:112
std::vector< osg::ref_ptr< osg::Texture2D > > mBlendmaps
Definition: material.hpp:80
int mBlendmapScale
Definition: material.hpp:81
virtual void define_passes()
Definition: material.hpp:49
std::vector< TextureLayer > mLayers
Definition: material.hpp:79
Definition: material.hpp:41