Open CASCADE Technology
7.7.0
|
Defines state of OCCT light sources. More...
#include <OpenGl_ShaderStates.hxx>
Public Member Functions | |
OpenGl_LightSourceState () | |
Creates uninitialized state of light sources. More... | |
void | Set (const Handle< Graphic3d_LightSet > &theLightSources) |
Sets new light sources. More... | |
const Handle< Graphic3d_LightSet > & | LightSources () const |
Returns current list of light sources. More... | |
Standard_Integer | SpecIBLMapLevels () const |
Returns number of mipmap levels used in specular IBL map. 0 by default or in case of using non-PBR shading model. More... | |
void | SetSpecIBLMapLevels (Standard_Integer theSpecIBLMapLevels) |
Sets number of mipmap levels used in specular IBL map. More... | |
bool | HasShadowMaps () const |
Returns TRUE if shadowmap is set. More... | |
const Handle< OpenGl_ShadowMapArray > & | ShadowMaps () const |
Returns shadowmap. More... | |
void | SetShadowMaps (const Handle< OpenGl_ShadowMapArray > &theMap) |
Sets shadowmap. More... | |
bool | ToCastShadows () const |
Returns TRUE if shadowmap should be enabled when available; TRUE by default. More... | |
void | SetCastShadows (bool theToCast) |
Set if shadowmap should be enabled when available. More... | |
Public Member Functions inherited from OpenGl_StateInterface | |
OpenGl_StateInterface () | |
Creates new state. More... | |
Standard_Size | Index () const |
Returns current state index. More... | |
void | Update () |
Increment current state. More... | |
Additional Inherited Members | |
Protected Attributes inherited from OpenGl_StateInterface | |
Standard_Size | myIndex |
current state index More... | |
Defines state of OCCT light sources.
|
inline |
Creates uninitialized state of light sources.
|
inline |
Returns TRUE if shadowmap is set.
|
inline |
Returns current list of light sources.
|
inline |
Sets new light sources.
|
inline |
Set if shadowmap should be enabled when available.
|
inline |
Sets shadowmap.
|
inline |
Sets number of mipmap levels used in specular IBL map.
|
inline |
Returns shadowmap.
|
inline |
Returns number of mipmap levels used in specular IBL map. 0 by default or in case of using non-PBR shading model.
|
inline |
Returns TRUE if shadowmap should be enabled when available; TRUE by default.