occt: master daf73ab7
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
kgv | bugmaster | master | 2017-10-31 17:02:13 | master 182bd7bc |
Changeset | 0029283: Visualization - allow defining more than 8 light sources OpenGl_ShaderManager now overrides THE_MAX_LIGHTS within built-in shading programs so that maximum number of lights is now limited only by OpenGL hardware (e.g. length of GLSL program, number of defined uniforms, result performance, etc.). THE_MAX_CLIP_PLANES is now also defined by OpenGl_ShaderManager, so that unused lights and clipping planes do not reserve extra uniforms in GLSL programs. V3d_View::SetLightOn() does not throw exception anymore, when the number of lights exceeds 8. Instead, OpenGl_ShaderManager::PushLightSourceState() emits warning in case of usage of FFP providing consistent behavior with Clipping Planes number limit. |
|||
mod - src/Graphic3d/Graphic3d_ShaderProgram.cxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_ShaderProgram.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_GraphicDriver.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderManager.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderManager.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderProgram.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderProgram.hxx | Diff File | |||
mod - src/Shaders/Declarations.glsl | Diff File | |||
mod - src/Shaders/DeclarationsImpl.glsl | Diff File | |||
mod - src/Shaders/Shaders_DeclarationsImpl_glsl.pxx | Diff File | |||
mod - src/Shaders/Shaders_Declarations_glsl.pxx | Diff File | |||
mod - src/V3d/V3d_View_2.cxx | Diff File | |||
add - tests/v3d/glsl/phong_pos2 | Diff File |