summaryrefslogtreecommitdiff
path: root/shaders/warsow/30.shader_test
blob: 04dc676b12ad45b429e08914e7fd2353d3ff9729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[require]
GLSL >= 1.10

[fragment shader]
#version 130
uniform sampler2D texSampler;
in vec3 texCoords;
out vec4 out_color;

void main()
{
   out_color = texture(texSampler, texCoords.xy);
}

[vertex shader]
#version 130
in vec2 position;
in vec3 textureCoords;
out vec3 texCoords;
void main()
{
   texCoords = textureCoords;
   gl_Position = vec4(position, 0.0, 1.0);
}