occt: master d84e8669
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
kgv | bugmaster | master | 2021-01-04 09:17:44 | master 37f80e16 |
Affected Issues | 0032039: Visualization, TKOpenGl - implement simple shadow mapping for a direct light source | |||
Changeset | 0032039: Visualization, TKOpenGl - implement simple shadow mapping for a direct light source Graphic3d_CLight::ToCastShadows() - added new property defining if light should cast shadows (ignored by Ray-Tracing). OpenGl_ShaderManager::stdComputeLighting() now implements shadow mapping for directional lights. OpenGl_ShaderManager::prepareGeomMainSrc() now handles copying of arrays. OpenGl_Context::ShadowMapTexUnit() - added property defining an offset for shadow map texture units. OpenGl_ShadowMap - added new class storing shadow map FBO with parameters. OpenGl_View::prepareFrameBuffers() - added resizing of shadow map FBOs. OpenGl_View::Redraw() - added section redrawing scene into shadow map FBOs via OpenGl_View::renderShadowMap() method. vrenderparams - added new parameters -shadowMapResolution and -shadowMapBias. |
|||
mod - src/Graphic3d/Graphic3d_CLight.cxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_CLight.hxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_LightSet.cxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_LightSet.hxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_RenderingParams.hxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_ShaderProgram.cxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_ShaderProgram.hxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_TextureUnit.hxx | Diff File | |||
mod - src/OpenGl/FILES | Diff File | |||
mod - src/OpenGl/OpenGl_Context.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_Context.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_FrameBuffer.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_FrameStats.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_LayerList.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/OpenGl/OpenGl_ShaderStates.hxx | Diff File | |||
add - src/OpenGl/OpenGl_ShadowMap.cxx | Diff File | |||
add - src/OpenGl/OpenGl_ShadowMap.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_Structure.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_View.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_View.hxx | Diff File | |||
add - src/Shaders/DirectionalLightShadow.glsl | Diff File | |||
mod - src/Shaders/FILES | Diff File | |||
add - src/Shaders/Shaders_DirectionalLightShadow_glsl.pxx | Diff File | |||
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx | Diff File | |||
mod - tests/v3d/grids.list | Diff File | |||
add - tests/v3d/shadows/buggy | Diff File | |||
add - tests/v3d/shadows/dir1 | Diff File | |||
add - tests/v3d/shadows/dir2 | Diff File | |||
add - tests/v3d/shadows/dirhead | Diff File |