Debian Codegraph @

tests/manual/rhi/cubemap_render/cubemap_sample.frag

raw
1 #version 440
2
3 layout(location = 0) in vec3 v_coord;
4 layout(location = 0) out vec4 fragColor;
5 layout(binding = 1) uniform samplerCube tex;
6
7 void main()
8 {
9 fragColor = vec4(texture(tex, v_coord).rgb, 1.0);
10 }