fdbc80d131
Need to invert it, SM 4.0+ uses W, not 1/W (like Vulkan/GL).
9 lines
120 B
GLSL
9 lines
120 B
GLSL
#version 450
|
|
|
|
layout(location = 0) out vec3 FragColor;
|
|
|
|
void main()
|
|
{
|
|
FragColor = gl_FragCoord.xyz / gl_FragCoord.w;
|
|
}
|