occt: master f68acbf4

Author Committer Branch Timestamp Parent
kgv bugmaster master 2016-03-23 09:42:17 master 259a8d04
Affected Issues  0027286: Visualization, TKOpenGl - avoid using light index within built-in GLSL programs for simplest configuration
Changeset 0027286: Visualization, TKOpenGl - avoid using light index within built-in GLSL programs for simplest configuration

OpenGl_ShaderManager::stdComputeLighting() - handle single directional light specifically
for compatibility with broken OpenGL ES drivers.

Added test cases using built-in GLSL shading programs.
mod - src/OpenGl/OpenGl_ShaderManager.cxx Diff File
mod - tests/v3d/glsl/begin Diff File
add - tests/v3d/glsl/gouraud_dir1 Diff File
add - tests/v3d/glsl/gouraud_dir2 Diff File
add - tests/v3d/glsl/phong_dir1 Diff File
add - tests/v3d/glsl/phong_dir2 Diff File