goat3dgfx

annotate examples/cubemap/sdr/sky.p.glsl @ 18:6f82b9b6d6c3

added the ability to render in fixed function with the mesh class
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 08 Dec 2013 01:35:30 +0200
parents 3d96734fd477
children
rev   line source
nuclear@9 1 uniform samplerCube cubemap;
nuclear@9 2
nuclear@9 3 varying vec3 norm;
nuclear@9 4
nuclear@9 5 void main()
nuclear@9 6 {
nuclear@9 7 gl_FragColor = textureCube(cubemap, norm);
nuclear@9 8 //gl_FragColor = vec4(norm * 0.5 + 0.5, 1.0);
nuclear@9 9 }