12 lines
241 B
GLSL
12 lines
241 B
GLSL
#version 450 core
|
|
#include "common.glsl"
|
|
|
|
in vec2 vUV;
|
|
layout(location = 0) out vec4 fragColor;
|
|
|
|
void main() {
|
|
vec3 far = worldFromDepth(vUV, 1.0);
|
|
vec3 dir = normalize(far - uCamPos.xyz);
|
|
fragColor = vec4(skyColor(dir), 1.0);
|
|
}
|