diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_aa_vert.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_aa_vert.glsl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_aa_vert.glsl b/source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_aa_vert.glsl index 7f143ccc28d..5d67658c639 100644 --- a/source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_aa_vert.glsl +++ b/source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_aa_vert.glsl @@ -1,15 +1,12 @@ -#pragma BLENDER_REQUIRE(gpu_shader_cfg_world_clip_lib.glsl) -#ifndef USE_GPU_SHADER_CREATE_INFO uniform mat4 ModelViewProjectionMatrix; -# ifdef USE_WORLD_CLIP_PLANES +#ifdef USE_WORLD_CLIP_PLANES uniform mat4 ModelMatrix; -# endif +#endif uniform float size; in vec3 pos; out vec2 radii; -#endif void main() { @@ -28,6 +25,6 @@ void main() radii /= size; #ifdef USE_WORLD_CLIP_PLANES - world_clip_planes_calc_clip_distance((clipPlanes.ModelMatrix * pos_4d).xyz); + world_clip_planes_calc_clip_distance((ModelMatrix * pos_4d).xyz); #endif } |