diff options
| author | onelin <oscar@nelin.dk> | 2025-11-29 22:18:46 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-12-18 21:14:16 +0000 |
| commit | ddb2ff380de24824db70d49a40bfd78032612b77 (patch) | |
| tree | 17872c5a387d8218ab2c9919ca2b959c07f635f0 /src/daw.c | |
| parent | 07116cd28845c3e589ab7e99f32d0ab96dd5cf4d (diff) | |
Add newlines to shader:)
Diffstat (limited to 'src/daw.c')
| -rw-r--r-- | src/daw.c | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -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" "}"; |
