0027943: Visualization - fix broken shading by positional light for object with local...
authorkgv <kgv@opencascade.com>
Sun, 9 Oct 2016 17:48:16 +0000 (20:48 +0300)
committerapn <apn@opencascade.com>
Thu, 13 Oct 2016 10:56:39 +0000 (13:56 +0300)
commit5f4bd4d4d2737c7c3b1cfc54726c819bb1c5388c
treeead2bc7030d42c5297c8a2c3a72d39293990a962
parentbd6a84544101c3e8dce8414f32f79f5af06e93bc
0027943: Visualization - fix broken shading by positional light for object with local transformation

OpenGl_ShaderManager, per-vertex shading and per-fragment shading
- do not apply model-world matrix on the light sources
which are expected to be defined in world-space.
src/OpenGl/OpenGl_ShaderManager.cxx
src/Shaders/PhongShading.fs
tests/v3d/glsl/gouraud_pos1 [new file with mode: 0644]
tests/v3d/glsl/gouraud_spot1 [new file with mode: 0644]
tests/v3d/glsl/phong_pos1 [new file with mode: 0644]
tests/v3d/glsl/phong_spot1 [new file with mode: 0644]