summaryrefslogtreecommitdiff
path: root/glsl
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2023-06-14 12:29:44 -0300
committerFrederico Linhares <fred@linhares.blue>2023-06-14 12:29:44 -0300
commit482d53c89c90ee2a74d14c1a3e6c2fdab4ce0004 (patch)
tree25b89e5a7ec7fde455da9c330a8ba80af92b99ac /glsl
parent8aa0799658c273d6a03005c0a95b9b5ffc80e226 (diff)
fixt Offset for 2D wired fragment shader
* glsl/shader_2d_wired.frag.glsl: GLSL requires that I declare offsets explicitly. I can not use a dummy variable as an offset.
Diffstat (limited to 'glsl')
-rw-r--r--glsl/shader_2d_wired.frag.glsl3
1 files changed, 1 insertions, 2 deletions
diff --git a/glsl/shader_2d_wired.frag.glsl b/glsl/shader_2d_wired.frag.glsl
index c7aa3f4..505cbb1 100644
--- a/glsl/shader_2d_wired.frag.glsl
+++ b/glsl/shader_2d_wired.frag.glsl
@@ -21,8 +21,7 @@ layout(location = 0) out vec4 out_color;
layout(push_constant) uniform PCColor
{
- vec4 offset; //offset
- vec3 color;
+ layout(offset = 16) vec3 color;
} sprite;
void