]> OCCT Git - occt.git/commit
0032200: Visualization, TKOpenGl - unify Phong/PBR light space calculations
authorkgv <kgv@opencascade.com>
Fri, 5 Mar 2021 20:06:50 +0000 (23:06 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 17 Mar 2021 16:53:13 +0000 (19:53 +0300)
commitb470ebea04c587a5d8336c20afe2d10725e8b488
treef1aa51d07af775e6ddb2e372b7c5c450eba38eaa
parent61a05a3658fabc6d3bb84c464c0bfe948a7150ce
0032200: Visualization, TKOpenGl - unify Phong/PBR light space calculations

Graphic3d_ShaderManager - Phong shading now uses World space calculations.
OpenGl_ShaderManager::pushLightSourceState() - fixed unnormalized direction of headlight source.
src/Graphic3d/Graphic3d_ShaderManager.cxx
src/OpenGl/OpenGl_ShaderManager.cxx
src/Shaders/DirectionalLightShadow.glsl
src/Shaders/PhongDirectionalLight.glsl
src/Shaders/PhongPointLight.glsl
src/Shaders/PhongSpotLight.glsl
src/Shaders/Shaders_DirectionalLightShadow_glsl.pxx
src/Shaders/Shaders_PhongDirectionalLight_glsl.pxx
src/Shaders/Shaders_PhongPointLight_glsl.pxx
src/Shaders/Shaders_PhongSpotLight_glsl.pxx