From ddb2ff380de24824db70d49a40bfd78032612b77 Mon Sep 17 00:00:00 2001 From: onelin Date: Sat, 29 Nov 2025 23:18:46 +0100 Subject: Add newlines to shader:) --- src/daw.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'src') diff --git a/src/daw.c b/src/daw.c index 2d6a764..5791c4b 100644 --- a/src/daw.c +++ b/src/daw.c @@ -187,30 +187,30 @@ static ShaderBuffer shaderbuf[3] = { #undef COUNT static const char* default_quad_shader_vertex_src = -"#version 330 core" -"" -"layout(location = 0) in vec3 vertexPosition_modelspace;" -"layout(location = 1) in vec2 vertexUV;" -"" -"out vec2 UV;" -"" -"void main() {" -" gl_Position = vec4(vertexPosition_modelspace, 0, 0);" -"" -" UV = vertexUV;" +"#version 330 core\n" +"\n" +"layout(location = 0) in vec2 vertexPosition_modelspace;\n" +"layout(location = 1) in vec2 vertexUV;\n" +"\n" +"out vec2 UV;\n" +"\n" +"void main() {\n" +" gl_Position = vec4(vertexPosition_modelspace, 0, 0);\n" +"\n" +" UV = vertexUV;\n" "}"; static const char* default_quad_shader_fragment_src = -"#version 330 core" -"" -"// Ouput data" -"in vec2 UV;" -"out vec3 color;" -"" -"uniform sampler2D textureSampler;" -"" -"void main() {" -" color = texture(textureSampler, UV).rgb;" +"#version 330 core\n" +"\n" +"// Ouput data\n" +"in vec2 UV;\n" +"out vec3 color;\n" +"\n" +"uniform sampler2D textureSampler;\n" +"\n" +"void main() {\n" +" color = texture(textureSampler, UV).rgb;\n" "}"; -- cgit v1.3