From 76dc3f0af36775d2fdaab61134dd0f875ee48292 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 30 Dec 2023 19:32:19 -0500 Subject: WIP graphics engine rewrite. --- data/shaders/path-stroke-vert.glsl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'data/shaders/path-stroke-vert.glsl') diff --git a/data/shaders/path-stroke-vert.glsl b/data/shaders/path-stroke-vert.glsl index 5915010..f1c7e3a 100644 --- a/data/shaders/path-stroke-vert.glsl +++ b/data/shaders/path-stroke-vert.glsl @@ -22,10 +22,24 @@ out vec2 fragTex; out float fragStrokeLength; #endif +#ifdef GLSL120 uniform mat4 mvp; uniform vec4 color; uniform int mode; uniform int strokeClosed; +#else +layout (std140) uniform Stroke +{ + mat4 mvp; + vec4 color; + float feather; + float strokeWidth; + float strokeMiterLimit; + int strokeClosed; + int strokeCap; + int strokeMiterStyle; +}; +#endif void main(void) { // Short-circuit because the fragments will just be discarded anyway. -- cgit v1.2.3