1 uniform samplerCube cubeTex;
\r
2 uniform float Roughness;
\r
6 // gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
\r
7 vec3 uvw = vec3(gl_TexCoord[0]);
\r
8 //gl_FragColor = textureCube( cubeTex, uvw );
\r
9 gl_FragColor = textureLod( cubeTex, uvw, Roughness );
\r
10 //gl_FragColor = textureCube( cubeTex, uvw, Roughness );
\r