Advertisement
Guest User

Untitled

a guest
Nov 27th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 330
  2.  
  3. uniform sampler2D texture_normal;   // View-space Normal buffer from GBuffer
  4. uniform samplerCube texture_ibl;    // IBL cubemap
  5.  
  6. uniform mat4 uInverseViewMatrix;
  7.  
  8. in vec2 passTexCoord;
  9. in vec4 passColor;
  10.  
  11. out vec4 outColor;
  12.  
  13. const float MULTIPLIER = 1024; // Test just to boost color to make sure I have output
  14.  
  15. void main(void) {
  16.     vec3 normal = texture( texture_normal, passTexCoord ).rgb;
  17.     vec3 sample = texture( texture_ibl, normal ).rgb;
  18.    
  19.     outColor = vec4( sample*MULTIPLIER, 1.0 );
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement