14 lines
322 B
GLSL
14 lines
322 B
GLSL
in vec3 v_coord;
|
|
layout (location = 0) out vec4 f_color;
|
|
layout (location = 1) out vec4 f_position;
|
|
layout (location = 2) out vec4 f_normal;
|
|
|
|
uniform samplerCube u_cubemap;
|
|
|
|
void main(){
|
|
vec3 dir = normalize(v_coord);
|
|
f_position = vec4(100000.0);
|
|
f_normal = vec4(0.0);
|
|
f_color = texture(u_cubemap, dir);
|
|
}
|