diff options
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/edit_gpencil_canvas_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/edit_gpencil_canvas_vert.glsl | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/edit_gpencil_canvas_vert.glsl b/source/blender/draw/engines/overlay/shaders/edit_gpencil_canvas_vert.glsl index 5aa7fe78e4e..47d9439ed80 100644 --- a/source/blender/draw/engines/overlay/shaders/edit_gpencil_canvas_vert.glsl +++ b/source/blender/draw/engines/overlay/shaders/edit_gpencil_canvas_vert.glsl @@ -1,13 +1,6 @@ -uniform vec4 color; -uniform vec3 xAxis; -uniform vec3 yAxis; -uniform vec3 origin; -uniform int halfLineCount; - -flat out vec4 finalColor; -flat out vec2 edgeStart; -noperspective out vec2 edgePos; +#pragma BLENDER_REQUIRE(common_view_clipping_lib.glsl) +#pragma BLENDER_REQUIRE(common_view_lib.glsl) void main() { @@ -28,6 +21,8 @@ void main() gl_Position = point_world_to_ndc(world_pos); + view_clipping_distances(world_pos); + finalColor = color; /* Convert to screen position [0..sizeVp]. */ |