mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-23 17:30:42 +00:00
ff27da4a05
It turns out bsp faces are still back-face culled despite the null point being on the front of every possible plane... or really, because it's on the front of every possible plane: sometimes the back face is the front face, and this breaks the face selection code (a separate traversal function will be needed for non-culling rendering). Despite that, other than having to deal with different pipelines, getting the model renderers working went better than expected.
25 lines
567 B
GLSL
25 lines
567 B
GLSL
#version 450
|
|
#extension GL_GOOGLE_include_directive : enable
|
|
#extension GL_EXT_multiview : enable
|
|
|
|
layout (set = 0, binding = 0) buffer ShadowView {
|
|
mat4x4 shadowView[];
|
|
};
|
|
|
|
layout (push_constant) uniform PushConstants {
|
|
mat4 Model;
|
|
float blend;
|
|
uint MatrixBase;
|
|
};
|
|
|
|
layout (location = 0) in vec4 vertexa;
|
|
layout (location = 1) in vec3 normala;
|
|
layout (location = 2) in vec4 vertexb;
|
|
layout (location = 3) in vec3 normalb;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
vec4 pos = mix (vertexa, vertexb, blend);
|
|
gl_Position = shadowView[MatrixBase + gl_ViewIndex] * (Model * pos);
|
|
}
|