#version 450 // vim: ft=c // clang-format off layout(location = 0) out vec4 outColor; layout(location = 0) in vec4 normal; layout(location = 1) in vec4 pos_pre; layout(location = 2) in vec4 view_orig; layout(location = 3) in vec4 pos_post; layout(push_constant, std430) uniform pc { layout(offset=48) vec4 data; }; void main() { outColor = vec4(vec3(pos_post.z / pos_post.w), 1.0); //if(pos_post.z <= 0.0) { // outColor = vec4(1.0); //} //outColor = normal.xyz; //outColor = vec4(vec3(1.0-gl_FragCoord.z), 1.0); //gl_FragDepth = pos_post.z / pos_post.w; }