#version 430 compatibility in vec3 fragPos; in vec3 interpNormal; uniform vec3 cameraPos; uniform samplerCube skybox; layout (binding = 0) uniform samplerCube tex_map; void main() { vec3 r = reflect(normalize(-fragPos), normalize(interpNormal)); gl_FragColor = texture(tex_map, r); }