Advertisement
Guest User

Untitled

a guest
Nov 27th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 330
  2.  
  3. uniform samplerCube texture_ibl;
  4.  
  5. uniform mat4 uViewMatrix;
  6.  
  7. in vec2 passTexCoord;
  8. in vec4 passColor;
  9.  
  10. out vec4 outColor;
  11.  
  12. const float MULTIPLIER = 1024; // Just to test if I get any color.
  13.  
  14. void main(void) {
  15.     vec3 iblVector = vec3( inverse( uViewMatrix ) ); // This should be different.
  16.     outColor = vec4( texture( texture_ibl, iblVector ).rgb*MULTIPLIER, 1.0 );
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement