cubeMapReflection.frag 328 B

12345678910111213
  1. uniform samplerCube cubeTex;
  2. uniform float Roughness;
  3. void main( void )
  4. {
  5. // gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
  6. vec3 uvw = vec3(gl_TexCoord[0]);
  7. //gl_FragColor = textureCube( cubeTex, uvw );
  8. gl_FragColor = textureLod( cubeTex, uvw, Roughness );
  9. //gl_FragColor = textureCube( cubeTex, uvw, Roughness );
  10. }