occt: master 5f4bd4d4

Author Committer Branch Timestamp Parent
kgv apn master 2016-10-09 17:48:16 master bd6a8454
Affected Issues  0027943: Visualization - fix broken shading by positional light for object with local transformation
Changeset 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.
mod - src/OpenGl/OpenGl_ShaderManager.cxx Diff File
mod - src/Shaders/PhongShading.fs Diff File
add - tests/v3d/glsl/gouraud_pos1 Diff File
add - tests/v3d/glsl/gouraud_spot1 Diff File
add - tests/v3d/glsl/phong_pos1 Diff File
add - tests/v3d/glsl/phong_spot1 Diff File