a guest Nov 21st, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #version 450
- //Fragment shader for skybox
- // Incoming interpolated UV coordinates.
- layout (location = 0) in Block
- vec3 UV;
- // Outgoing final color.
- layout (location = 0) out vec4 outputColor;
- // Texture sampler
- uniform samplerCube textureSampler;
- void main()
- // Retrieve the final color from the texture
- outputColor = texture(textureSampler, UV);
RAW Paste Data