aboutsummaryrefslogtreecommitdiffstats
path: root/examples/resources/textureshader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources/textureshader.frag')
-rw-r--r--examples/resources/textureshader.frag8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/resources/textureshader.frag b/examples/resources/textureshader.frag
index ef728b04..8d916be6 100644
--- a/examples/resources/textureshader.frag
+++ b/examples/resources/textureshader.frag
@@ -4,13 +4,15 @@ layout(location = 0) in vec2 fragment_position;
layout(location = 1) in vec4 fragment_colour;
layout(location = 2) in vec2 fragment_uv;
-out vec4 colour;
+layout(location = 0) out vec4 colour;
+layout(location = 1) out vec4 colour2;
uniform sampler2D texture_sampler;
void main()
{
- vec4 texture_color = texture(texture_sampler, fragment_uv);
+ vec4 texture_colour = texture(texture_sampler, fragment_uv);
- colour = texture_color * fragment_colour;
+ colour2 = vec4(1.f, 0.f, 0.f, 1.f);
+ colour = texture_colour;
}