Blender Git Loki

Git Commits -> Revision 396dd82

Revision 396dd82 by Mike Erwin (master)
August 4, 2016, 19:59 (GMT)
OpenGL: add simple shaders for 2D drawing

The first two of several new simple built-in shaders (will test these
before adding more). These are intended for the new immediate mode API,
but you can use them just like any built-in GPUShader.

Due to limitations on different platforms, shaders need to work with
GLSL versions 120, 130 and 150. Final Blender 2.8 will be pure #version
150.

Commit Details:

Full Hash: 396dd824285d7fb524fcc8ad8ca4cddddf2efb6d
Parent Commit: 797f189
Lines Changed: +98, -0

4 Added Paths:

/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_frag.glsl (+13, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl (+18, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_uniform_color_frag.glsl (+13, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_uniform_color_vert.glsl (+11, -0) (View)

3 Modified Paths:

/source/blender/gpu/CMakeLists.txt (+5, -0) (Diff)
/source/blender/gpu/GPU_shader.h (+4, -0) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+34, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021