source:
data/branches/Shader_HS18/programs/Example/GLSL150/ShowUVdir3D.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 6 years ago | |
---|---|
File size: 197 bytes |
Rev | Line | |
---|---|---|
[12083] | 1 | #version 150 |
2 | ||
3 | in vec4 oUv0; | |
4 | ||
5 | out vec4 fragColour; | |
6 | ||
7 | // Basic fragment program to display 3d uv | |
8 | void main() | |
9 | { | |
10 | vec3 n = normalize(oUv0.xyz); | |
11 | fragColour = vec4(n.x, n.y, n.z, 1.0); | |
12 | } | |
13 | ||
14 |
Note: See TracBrowser
for help on using the repository browser.