goat3dgfx

view examples/cubemap/sdr/sky.p.glsl @ 6:3d96734fd477

cubemap loading and cubemap example program
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 17 Nov 2013 08:20:13 +0200
parents 18879c956eb1
children 25b911c7c35c
line source
1 uniform samplerCube cubemap;
3 varying vec3 norm;
5 void main()
6 {
7 gl_FragColor = textureCube(cubemap, norm);
8 //gl_FragColor = vec4(norm * 0.5 + 0.5, 1.0);
9 }