0027286: Visualization, TKOpenGl - avoid using light index within built-in GLSL progr...
authorkgv <kgv@opencascade.com>
Wed, 23 Mar 2016 09:42:17 +0000 (12:42 +0300)
committerbugmaster <bugmaster@opencascade.com>
Mon, 28 Mar 2016 14:31:04 +0000 (17:31 +0300)
commitf68acbf47a35850cf89c5179c9d769ac3f028b3e
treee1979ad9f7317addf04f9413b9174844b3ac21d3
parent259a8d04eb5f30263529c39f16242529ac4e5adb
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.
src/OpenGl/OpenGl_ShaderManager.cxx
tests/v3d/glsl/begin
tests/v3d/glsl/gouraud_dir1 [new file with mode: 0644]
tests/v3d/glsl/gouraud_dir2 [new file with mode: 0644]
tests/v3d/glsl/phong_dir1 [new file with mode: 0644]
tests/v3d/glsl/phong_dir2 [new file with mode: 0644]