summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-11-29 22:18:46 +0000
committeronelin <oscar@nelin.dk>2025-12-18 21:14:16 +0000
commitddb2ff380de24824db70d49a40bfd78032612b77 (patch)
tree17872c5a387d8218ab2c9919ca2b959c07f635f0 /src
parent07116cd28845c3e589ab7e99f32d0ab96dd5cf4d (diff)
Add newlines to shader:)
Diffstat (limited to 'src')
-rw-r--r--src/daw.c42
1 files changed, 21 insertions, 21 deletions
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"
"}";