SHARE
TWEET

Untitled

a guest Nov 21st, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 450
  2. //Fragment shader for skybox
  3.  
  4. // Incoming interpolated UV coordinates.
  5. layout (location = 0) in Block
  6. {
  7.     vec3 UV;
  8. };
  9.  
  10. // Outgoing final color.
  11. layout (location = 0) out vec4 outputColor;
  12.  
  13. // Texture sampler
  14. uniform samplerCube textureSampler;
  15.  
  16. void main()
  17. {
  18.     // Retrieve the final color from the texture
  19.     outputColor = texture(textureSampler, UV);
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top