]> OCCT Git - occt.git/commit
0032173: Visualization, TKOpenGl - implement simple shadow mapping for a point light...
authordrochalo <diogo.lopes@opencascade.com>
Mon, 5 Feb 2024 15:11:09 +0000 (15:11 +0000)
committerdrochalo <diogo.lopes@opencascade.com>
Tue, 5 Mar 2024 16:16:19 +0000 (16:16 +0000)
commit48f8f1e6ea9662512c1c049e1d8a14c64b90527a
tree396130d3a85b968508c02e94d514f3f5cb0eb99f
parent80705eaf3181f779d6f59bbe0959e1acafb8fc94
0032173: Visualization, TKOpenGl - implement simple shadow mapping for a point light source

Modified shadowmap calculations to include multipass for point lights.
Added shader funtions to calculate point light shadows.
Added getter for default znear and zfar values in Graphic3d_Camera.
Added direction and up vector calulations on Graphic3d_CubeMap.
Added logical exception for opengles2.0 lack of support on some key features of cube shadow maps.
Added test case.
34 files changed:
src/Graphic3d/Graphic3d_CLight.cxx
src/Graphic3d/Graphic3d_Camera.cxx
src/Graphic3d/Graphic3d_Camera.hxx
src/Graphic3d/Graphic3d_CubeMap.cxx
src/Graphic3d/Graphic3d_CubeMap.hxx
src/Graphic3d/Graphic3d_LightSet.cxx
src/Graphic3d/Graphic3d_LightSet.hxx
src/Graphic3d/Graphic3d_ShaderManager.cxx
src/Graphic3d/Graphic3d_ShaderManager.hxx
src/Graphic3d/Graphic3d_ShaderProgram.cxx
src/Graphic3d/Graphic3d_ShaderProgram.hxx
src/Graphic3d/Graphic3d_TextureUnit.hxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_FrameBuffer.cxx
src/OpenGl/OpenGl_FrameBuffer.hxx
src/OpenGl/OpenGl_ShaderManager.cxx
src/OpenGl/OpenGl_ShaderProgram.cxx
src/OpenGl/OpenGl_ShaderProgram.hxx
src/OpenGl/OpenGl_ShadowMap.cxx
src/OpenGl/OpenGl_ShadowMap.hxx
src/OpenGl/OpenGl_Texture.cxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_View.hxx
src/Shaders/Declarations.glsl
src/Shaders/FILES
src/Shaders/LightPointShadow.glsl [new file with mode: 0644]
src/Shaders/PBRPointLight.glsl
src/Shaders/PhongPointLight.glsl
src/Shaders/Shaders_Declarations_glsl.pxx
src/Shaders/Shaders_LightPointShadow_glsl.pxx [new file with mode: 0644]
src/Shaders/Shaders_PBRPointLight_glsl.pxx
src/Shaders/Shaders_PhongPointLight_glsl.pxx
tests/opengl/data/shadows/pointlight [new file with mode: 0644]