diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_varying_color_vert.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_varying_color_vert.glsl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_varying_color_vert.glsl b/source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_varying_color_vert.glsl new file mode 100644 index 00000000000..7999435f0e4 --- /dev/null +++ b/source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_varying_color_vert.glsl @@ -0,0 +1,21 @@ + +uniform mat4 ModelViewProjectionMatrix; + +#if __VERSION__ == 120 + attribute vec3 pos; + attribute float size; + attribute vec4 color; + varying vec4 finalColor; +#else + in vec3 pos; + in float size; + in vec4 color; + out vec4 finalColor; +#endif + +void main() +{ + gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0); + gl_PointSize = size; + finalColor = color; +} |