cubeMapReflection.frag 342 B

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