13 lines
297 B
GLSL
13 lines
297 B
GLSL
#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);
|
|
} |