OpenGL: more work on fixed function lighting implementation as GLSL.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 10 Mar 2013 15:38:23 +0000 (15:38 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 10 Mar 2013 15:38:23 +0000 (15:38 +0000)
commit9fe858264c698844c6734ed8eeeb0cd2373b4b4a
tree926c0f82915fe1417e3f679f5e64fe4f32350841
parentf57398568a326dcbc69900d2c21b96abca14429b
OpenGL: more work on fixed function lighting implementation as GLSL.

* Rename functions and move to own header.
* Add wrapper functions for glLight.
* Auto detect if we can use faster code for solid lighting.
* Various fixes for textured draw mode.
SConstruct
source/blender/gpu/CMakeLists.txt
source/blender/gpu/GPU_extensions.h
source/blender/gpu/GPU_simple_shader.h [new file with mode: 0644]
source/blender/gpu/SConscript
source/blender/gpu/intern/gpu_extensions.c
source/blender/gpu/intern/gpu_fixed_material.c [deleted file]
source/blender/gpu/intern/gpu_simple_shader.c [new file with mode: 0644]
source/blender/gpu/shaders/gpu_shader_simple_frag.glsl [moved from source/blender/gpu/shaders/gpu_shader_fixed_fragment.glsl with 100% similarity]
source/blender/gpu/shaders/gpu_shader_simple_vert.glsl [moved from source/blender/gpu/shaders/gpu_shader_fixed_vertex.glsl with 100% similarity]