diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-10-15 09:30:59 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-10-15 09:30:59 +0300 |
commit | 2df27995f9226245c29007c3dd2eca61cb31fc69 (patch) | |
tree | c0be5b925eccae8dde85a8a72953f05c2a177bfb /source/blender/gpu/GPU_shader.h | |
parent | 48db35468f56cf9dc36870d39cfdf9e025495c5b (diff) |
OpenGL: new built-in point shader, clean up other shader names
Smooth round point with outline (uniform color) and fill (varying color).
Updated shader naming scheme: a shader that doesn't deal with color does not have to say "no color". Vertex shaders do not have to say "uniform color" since their frag counterpart actually has the uniform. Each name should describe what that shader *does*, not what it *doesn't do*.
Diffstat (limited to 'source/blender/gpu/GPU_shader.h')
-rw-r--r-- | source/blender/gpu/GPU_shader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_shader.h b/source/blender/gpu/GPU_shader.h index 8ccaa9d470e..2256838fb06 100644 --- a/source/blender/gpu/GPU_shader.h +++ b/source/blender/gpu/GPU_shader.h @@ -108,6 +108,7 @@ typedef enum GPUBuiltinShader { GPU_SHADER_2D_POINT_FIXED_SIZE_UNIFORM_COLOR, GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_SMOOTH, GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_SMOOTH, + GPU_SHADER_2D_POINT_UNIFORM_SIZE_VARYING_COLOR_OUTLINE_SMOOTH, GPU_SHADER_2D_POINT_VARYING_SIZE_VARYING_COLOR, GPU_SHADER_3D_POINT_FIXED_SIZE_UNIFORM_COLOR, GPU_SHADER_3D_POINT_FIXED_SIZE_VARYING_COLOR, |