diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_vert.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_vert.glsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_vert.glsl b/source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_vert.glsl new file mode 100644 index 00000000000..e4f173ab617 --- /dev/null +++ b/source/blender/gpu/shaders/gpu_shader_3D_point_varying_size_vert.glsl @@ -0,0 +1,11 @@ + +uniform mat4 ModelViewProjectionMatrix; + +in vec3 pos; +in float size; + +void main() +{ + gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0); + gl_PointSize = size; +} |