source:
data/branches/Shader_HS18/programs/Example/GLSL150/DiffuseOneTexture.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 6 years ago | |
---|---|
File size: 236 bytes |
Line | |
---|---|
1 | #version 150 |
2 | |
3 | uniform sampler2D texMap; |
4 | |
5 | in vec4 colour; |
6 | in vec4 uv; |
7 | |
8 | out vec4 fragColour; |
9 | |
10 | /* |
11 | Basic fragment program using texture and diffuse colour. |
12 | */ |
13 | void main() |
14 | { |
15 | fragColour = texture(texMap, uv.xy) * colour; |
16 | } |
Note: See TracBrowser
for help on using the repository browser.