mirror of
https://github.com/slendidev/lunar.git
synced 2026-01-30 16:28:58 +02:00
13 lines
281 B
GLSL
13 lines
281 B
GLSL
#version 450
|
|
|
|
layout (location = 0) in vec3 in_dir;
|
|
|
|
layout (location = 0) out vec4 out_frag_color;
|
|
|
|
layout (set = 0, binding = 0) uniform samplerCube environment_map;
|
|
|
|
void main() {
|
|
vec3 dir = normalize(in_dir);
|
|
out_frag_color = vec4(texture(environment_map, dir).rgb, 1.0f);
|
|
}
|