Blender Git Loki
Git Commits -> Revision 4643d61
Revision 4643d61 by Brecht Van Lommel (master) February 26, 2013, 00:49 (GMT) |
OpenGL: implemenation of fixed function lighting as per pixel GLSL shaders. The code is still unused, but the intention is to use this to solve the double sided lighting problem on NVidia, and to make the materials work on OpenGL ES 2.0 eventually. The code works and matches the fixed function lighting pretty much exactly, but still needs optimizations. The actual integration in object draw will be committed later when more fixing & testing, there's lots of different combinations and unclear OpenGL state here. |
Commit Details:
Full Hash: 4643d61ffbbd99cf7c194fb73b77e7f2a256249f
SVN Revision: 54869
Parent Commit: a9facca
Lines Changed: +487, -28
3 Added Paths:
/source/blender/gpu/intern/gpu_fixed_material.c (+191, -0) (View)
/source/blender/gpu/shaders/gpu_shader_fixed_fragment.glsl (+169, -0) (View)
/source/blender/gpu/shaders/gpu_shader_fixed_vertex.glsl (+48, -0) (View)
/source/blender/gpu/shaders/gpu_shader_fixed_fragment.glsl (+169, -0) (View)
/source/blender/gpu/shaders/gpu_shader_fixed_vertex.glsl (+48, -0) (View)
8 Modified Paths:
/SConstruct (+4, -2) (Diff)
/source/blender/gpu/CMakeLists.txt (+4, -1) (Diff)
/source/blender/gpu/GPU_extensions.h (+29, -3) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+3, -5) (Diff)
/source/blender/gpu/intern/gpu_extensions.c (+32, -12) (Diff)
/source/blender/gpu/intern/gpu_material.c (+1, -1) (Diff)
/source/blender/gpu/SConscript (+3, -1) (Diff)
/source/blender/gpu/shaders/gpu_shader_vertex.glsl (+3, -3) (Diff)
/source/blender/gpu/CMakeLists.txt (+4, -1) (Diff)
/source/blender/gpu/GPU_extensions.h (+29, -3) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+3, -5) (Diff)
/source/blender/gpu/intern/gpu_extensions.c (+32, -12) (Diff)
/source/blender/gpu/intern/gpu_material.c (+1, -1) (Diff)
/source/blender/gpu/SConscript (+3, -1) (Diff)
/source/blender/gpu/shaders/gpu_shader_vertex.glsl (+3, -3) (Diff)