Geometry shader support+omnidirectional depth map shader+improvements

This commit is contained in:
bloeys
2024-04-15 05:09:07 +04:00
parent a5bea5a661
commit c4b1dd1b3d
9 changed files with 201 additions and 59 deletions

View File

@ -0,0 +1,21 @@
//shader:vertex
#version 410
layout(location=0) in vec3 vertPosIn;
uniform mat4 modelMat;
uniform mat4 projViewMat;
void main()
{
gl_Position = projViewMat * modelMat * vec4(vertPosIn, 1);
}
//shader:fragment
#version 410
void main()
{
// This implicitly writes to the depth buffer with no color operations
// Equivalent: gl_FragDepth = gl_FragCoord.z;
}