GRK-Projekt/grafika_projekt/shaders/bubble.frag
2022-01-02 01:26:44 +01:00

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);
}