1 2 3 4 5 6 7 8 9 10 11
#version 410 core out vec4 FragColor; in vec3 TexCoords; uniform samplerCube cubemap; void main() { FragColor = texture(cubemap, TexCoords); }