gz/rendering/ogre/OgreRTShaderSystem.hh
Go to the documentation of this file.
62 };
Implements Ogre's Run-Time Shader system.
Definition: gz/rendering/ogre/OgreRTShaderSystem.hh:47
void DetachEntity(OgreSubMesh *_vis)
Remove and entity.
static void AttachViewport(Ogre::Viewport *_viewport, OgreScenePtr _scene)
Set a viewport to use shaders.
unsigned int ShadowTextureSize() const
Get the shadow texture size.
LightingModel
The type of lighting.
Definition: gz/rendering/ogre/OgreRTShaderSystem.hh:51
@ SSLM_PerPixelLighting
Per-Pixel lighting: best look.
Definition: gz/rendering/ogre/OgreRTShaderSystem.hh:55
@ SSLM_NormalMapLightingTangentSpace
Normal Map lighting: lighting calculations have been stored in a light map (texture) using tangent sp...
Definition: gz/rendering/ogre/OgreRTShaderSystem.hh:58
@ SSLM_PerVertexLighting
Per-Vertex lighting: best performance.
Definition: gz/rendering/ogre/OgreRTShaderSystem.hh:53
void UpdateShaders()
Update the shaders. This should not be called frequently.
bool IsInitialized() const
Get if RTShaderSystem is initialized or not.
bool SetShadowTextureSize(const unsigned int _size)
Set the shadow texture size.
void SetPerPixelLighting(bool _set)
Set the lighting model to per pixel or per vertex.
void RemoveShadows(OgreScenePtr _scene)
Remove shadows from a scene.
void RemoveScene(OgreScenePtr _scene)
Remove a scene.
void RemoveScene(const std::string &_scene)
Remove a scene.
void AttachEntity(OgreSubMesh *_vis)
Set an Ogre::Entity to use RT shaders.
static void DetachViewport(Ogre::Viewport *_viewport, OgreScenePtr _scene)
Set a viewport to not use shaders.
void AddScene(OgreScenePtr _scene)
Add a scene manager.
void GenerateShaders(OgreSubMesh *_subMesh)
Generate shaders for an entity.
void ApplyShadows(OgreScenePtr _scene)
Apply shadows to a scene.
Ogre::PSSMShadowCameraSetup * PSSMShadowCameraSetup() const
Get the Ogre PSSM Shadows camera setup.
void RemoveShaders(OgreSubMesh *_subMesh)
Generate shaders for an entity.
Definition: gz/rendering/ogre/OgreMesh.hh:106