Blender Git Loki
Git Commits -> Revision 910046a
August 6, 2013, 03:45 (GMT) |
Basic shader now runs and renders lit objects on OpenGL 3.2 Core. The lighting isn't accurate yet. Lots of glitches. On another note, Vertex Array Objects may not be as useful as I thought they'd be for saving immediate mode state. Had to work around a bug in ATI drivers that makes attribute 0 not work when changed with glVertexAttrib. |
Commit Details:
Full Hash: 910046a385088f4f1e2eb17b963b06932bab76d6
SVN Revision: 58955
Parent Commit: de4d3e8
Lines Changed: +353, -200
16 Modified Paths:
/source/blender/blenlib/intern/BLI_dynstr.c (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_basic_shader.c (+34, -16) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+6, -6) (Diff)
/source/blender/gpu/intern/gpu_common.c (+12, -2) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+3, -6) (Diff)
/source/blender/gpu/intern/gpu_extensions.c (+68, -13) (Diff)
/source/blender/gpu/intern/gpu_font_shader.c (+23, -12) (Diff)
/source/blender/gpu/intern/gpu_immediate.c (+10, -11) (Diff)
/source/blender/gpu/intern/gpu_immediate_gl.c (+75, -55) (Diff)
/source/blender/gpu/intern/gpu_immediate_inline.h (+8, -8) (Diff)
/source/blender/gpu/intern/gpu_matrix.c (+15, -14) (Diff)
/source/blender/gpu/shaders/gpu_shader_basic_frag.glsl (+65, -46) (Diff)
/source/blender/gpu/shaders/gpu_shader_basic_vert.glsl (+20, -10) (Diff)
/source/blender/gpu/shaders/gpu_shader_common_attribs.glsl (+8, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_common_uniforms.glsl (+1, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_font_frag.glsl (+4, -0) (Diff)
/source/blender/gpu/intern/gpu_basic_shader.c (+34, -16) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+6, -6) (Diff)
/source/blender/gpu/intern/gpu_common.c (+12, -2) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+3, -6) (Diff)
/source/blender/gpu/intern/gpu_extensions.c (+68, -13) (Diff)
/source/blender/gpu/intern/gpu_font_shader.c (+23, -12) (Diff)
/source/blender/gpu/intern/gpu_immediate.c (+10, -11) (Diff)
/source/blender/gpu/intern/gpu_immediate_gl.c (+75, -55) (Diff)
/source/blender/gpu/intern/gpu_immediate_inline.h (+8, -8) (Diff)
/source/blender/gpu/intern/gpu_matrix.c (+15, -14) (Diff)
/source/blender/gpu/shaders/gpu_shader_basic_frag.glsl (+65, -46) (Diff)
/source/blender/gpu/shaders/gpu_shader_basic_vert.glsl (+20, -10) (Diff)
/source/blender/gpu/shaders/gpu_shader_common_attribs.glsl (+8, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_common_uniforms.glsl (+1, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_font_frag.glsl (+4, -0) (Diff)