Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 330
- uniform samplerCube texture_ibl;
- uniform mat4 uViewMatrix;
- in vec2 passTexCoord;
- in vec4 passColor;
- out vec4 outColor;
- const float MULTIPLIER = 1024; // Just to test if I get any color.
- void main(void) {
- vec3 iblVector = vec3( inverse( uViewMatrix ) ); // This should be different.
- outColor = vec4( texture( texture_ibl, iblVector ).rgb*MULTIPLIER, 1.0 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement