gz/rendering/ogre/OgreMaterial.hh
Go to the documentation of this file.
Definition: gz/rendering/base/BaseMaterial.hh:41
Definition: gz/rendering/ogre/OgreMaterial.hh:41
virtual ~OgreMaterial()
std::string vertexShaderPath
Path to vertex shader program.
Definition: gz/rendering/ogre/OgreMaterial.hh:229
std::string normalMapName
Definition: gz/rendering/ogre/OgreMaterial.hh:224
virtual ShaderParamsPtr VertexShaderParams() override
Get params for the vertex shader.
virtual bool CastShadows() const override
Determine if this material casts shadows.
virtual double Transparency() const override
Get the transparency value.
virtual void SetDepthMaterial(const double far, const double near) override
Configuration for Depth Material.
void UpdateShaderParams(ConstShaderParamsPtr _params, Ogre::GpuProgramParametersSharedPtr _ogreParams)
Transfer params from ign-rendering type to ogre type.
Ogre::MaterialPtr ogreMaterial
Definition: gz/rendering/ogre/OgreMaterial.hh:209
virtual void SetReflectivity(const double _reflectivity) override
Set the reflectivity value.
virtual void SetRenderOrder(const float _renderOrder) override
Set the render order. When polygons are coplanar, you can get problems with 'depth fighting' where th...
ShaderParamsPtr vertexShaderParams
Parameters to be bound to the vertex shader.
Definition: gz/rendering/ogre/OgreMaterial.hh:235
void UpdateShaderParams()
bind shader parameters that have changed
virtual std::string NormalMap() const override
Get the URI of the normal map file.
virtual void SetAmbient(const math::Color &_color) override
Set the ambient color.
ShaderParamsPtr fragmentShaderParams
Parameters to be bound to the fragment shader.
Definition: gz/rendering/ogre/OgreMaterial.hh:238
virtual void SetDepthWriteEnabled(bool _enabled) override
Specify if depth buffer writing is enabled.
virtual void ClearNormalMap() override
Removes any normal map mapped to this material.
virtual void SetCastShadows(const bool _castShadows) override
Specify if this material casts shadows.
virtual void SetShininess(const double _shininess) override
Set the shininess value.
virtual bool ReceiveShadows() const override
Determine if this material receives shadows.
virtual void UpdateTransparency()
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
virtual math::Color Specular() const override
Get the specular color.
virtual void SetDepthCheckEnabled(bool _enabled) override
Specify if depth buffer checking is enabled.
virtual void SetFragmentShader(const std::string &_path) override
Set the fragment shader.
virtual void SetVertexShader(const std::string &_path) override
Set the vertex shader.
virtual void SetSpecular(const math::Color &_color) override
Set the specular color.
virtual void SetEmissive(const math::Color &_color) override
Set the emissive color.
virtual bool ReflectionEnabled() const override
Determine if this material has a reflection.
std::string textureName
Definition: gz/rendering/ogre/OgreMaterial.hh:222
virtual bool DepthCheckEnabled() const override
Determine if depth buffer checking is enabled.
std::string fragmentShaderPath
Path to fragment shader program.
Definition: gz/rendering/ogre/OgreMaterial.hh:232
virtual math::Color Emissive() const override
Get the emissive color.
virtual void ClearTexture() override
Removes any texture mapped to this material.
virtual bool HasTexture() const override
Determine if this material has a texture.
virtual void SetTransparency(const double _transparency) override
Set the transparency value.
virtual void SetNormalMap(const std::string &_normalMap) override
Set the material normal map.
Ogre::String ogreGroup
Definition: gz/rendering/ogre/OgreMaterial.hh:217
virtual void Destroy() override
virtual bool LightingEnabled() const override
Determine if lighting affects this material.
virtual double Reflectivity() const override
Get the reflectivity value.
virtual double Shininess() const override
Get the shininess value.
virtual Ogre::TexturePtr Texture(const std::string &_name)
virtual math::Color Ambient() const override
Get the ambient color.
virtual void LoadOneImage(const std::string &_name, Ogre::Image &_image)
virtual Ogre::TexturePtr CreateTexture(const std::string &_name)
virtual void SetAlphaFromTexture(bool _enabled, double _alpha=0.5, bool _twoSided=true) override
Set the material to use the alpha channel from the textures.
virtual Ogre::MaterialPtr Material() const
virtual float RenderOrder() const override
Get the render order value of this material.
virtual std::string Texture() const override
Get the URI of the texture file.
virtual math::Color Diffuse() const override
Get the diffuse color.
virtual bool HasNormalMap() const override
Determine if this material has a normal map.
virtual void SetReceiveShadows(const bool _receiveShadows) override
Specify if this material receives shadows.
virtual void SetTexture(const std::string &_texture) override
Set the material texture.
virtual std::string VertexShader() const override
Get path to the vertex shader.
virtual void Init() override
virtual bool DepthWriteEnabled() const override
Determine if depth buffer writing is enabled.
virtual void SetLightingEnabled(const bool _enabled) override
Specify if lighting affects this material.
virtual void SetDiffuse(const math::Color &_color) override
Set the diffuse color.
virtual void UpdateColorOperation()
OgreMaterial()
virtual std::string FragmentShader() const override
Get path to the fragment shader.
virtual ShaderParamsPtr FragmentShaderParams() override
Get params for the fragment shader.
virtual void SetShaderType(enum ShaderType _type) override
Set the ShaderType value.
virtual void SetReflectionEnabled(const bool _enabled) override
Specify if this material has a reflection.
virtual void SetTextureImpl(const std::string &_texture)
Set the texture for this material.
Definition: gz/rendering/ogre/OgreScene.hh:41
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
const std::string depth_vertex_shader_file
Definition: gz/rendering/ogre/OgreMaterial.hh:34
ShaderType
Available types of shaders. Note that not all rendering-engines will be able to use each type....
Definition: gz/rendering/ShaderType.hh:35
@ ST_PIXEL
Per pixel lighting shader.
Definition: gz/rendering/ShaderType.hh:40
const std::string depth_fragment_shader_file
Definition: gz/rendering/ogre/OgreMaterial.hh:36