Perspective projection
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec3 fragCoord;
|
||||
layout(location = 1) in float vertexIndex;
|
||||
layout(location = 0) in float vertexIndex;
|
||||
layout(location = 1) in float depth;
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = vec4(fragCoord.z, vertexIndex * 0.1, 0.0, 1.0);
|
||||
fragColor = vec4(
|
||||
depth,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user