Changes to shadowpass

This commit is contained in:
2026-02-15 21:17:09 +01:00
parent 9f9663fb47
commit c8ee843a09
7 changed files with 23 additions and 15 deletions
+1
View File
@@ -78,6 +78,7 @@ VertexShaderOutput vertexMain(
float4 worldPos = float4(mul(cameraRotation, vertices[vertexIndex]), 1.0f);
//clip(dot(worldPos, clipPlane));
output.clipPos = mul(pViewParams.projectionMatrix, worldPos);
output.clipPos.z = output.clipPos.w - 0.0001f; // Push to far plane
output.texCoords = normalize(vertices[vertexIndex]);
return output;
}