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










