17 #ifndef IGNITION_RENDERING_OGRE_OGREMATERIAL_HH_ 18 #define IGNITION_RENDERING_OGRE_OGREMATERIAL_HH_ 37 public:
virtual bool LightingEnabled()
const;
39 public:
virtual void SetLightingEnabled(
const bool _enabled);
41 public:
virtual math::Color Ambient()
const;
43 public:
virtual void SetAmbient(
const math::Color &_color);
45 public:
virtual math::Color Diffuse()
const;
47 public:
virtual void SetDiffuse(
const math::Color &_color);
49 public:
virtual math::Color Specular()
const;
51 public:
virtual void SetSpecular(
const math::Color &_color);
53 public:
virtual math::Color Emissive()
const;
55 public:
virtual void SetEmissive(
const math::Color &_color);
57 public:
virtual double Shininess()
const;
59 public:
virtual void SetShininess(
const double _shininess);
61 public:
virtual double Transparency()
const;
63 public:
virtual void SetTransparency(
const double _transparency);
65 public:
virtual double Reflectivity()
const;
67 public:
virtual void SetReflectivity(
const double _reflectivity);
69 public:
virtual bool CastShadows()
const;
71 public:
virtual void SetCastShadows(
const bool _castShadows);
73 public:
virtual bool ReceiveShadows()
const;
75 public:
virtual void SetReceiveShadows(
const bool _receiveShadows);
77 public:
virtual bool ReflectionEnabled()
const;
79 public:
virtual void SetReflectionEnabled(
const bool _enabled);
81 public:
virtual bool HasTexture()
const;
85 public:
virtual void SetTexture(
const std::string &_name);
87 public:
virtual void ClearTexture();
89 public:
virtual bool HasNormalMap()
const;
93 public:
virtual void SetNormalMap(
const std::string &_name);
95 public:
virtual void ClearNormalMap();
99 public:
virtual void SetShaderType(
enum ShaderType _type);
103 protected:
virtual void LoadImage(
const std::string &_name,
108 protected:
virtual void SetTextureImpl(
const std::string &_texture);
115 protected:
virtual void UpdateTransparency();
117 protected:
virtual void UpdateColorOperation();
119 protected:
virtual void Init();
131 #if OGRE_VERSION_MAJOR == 1 && OGRE_VERSION_MINOR <= 7 132 protected: math::Color emissiveColor;
134 protected:
double shininess = 0.0;
136 protected:
double transparency = 0.0;
138 protected:
double reflectivity = 0.0;
140 protected:
bool castShadows =
true;
142 protected:
bool reflectionEnabled =
true;
Ogre::String ogreGroup
Definition: OgreMaterial.hh:129
std::string normalMapName
Definition: OgreMaterial.hh:146
Definition: OgreMaterial.hh:30
Definition: OgreScene.hh:34
std::string textureName
Definition: OgreMaterial.hh:144
ShaderType
Available types of shaders. Note that not all rendering-engines will be able to use each type...
Definition: ShaderType.hh:31
Definition: BaseMaterial.hh:30
Shader shader.
Definition: ShaderType.hh:37
Ogre::MaterialPtr ogreMaterial
Definition: OgreMaterial.hh:121
Definition: ArrowVisual.hh:22
Represents a surface material of a Geometry.
Definition: Material.hh:34