Depth Culling works??

This commit is contained in:
Dynamitos
2024-06-11 14:15:29 +02:00
parent 2ba30a8fcc
commit 52c4f11d28
22 changed files with 264 additions and 92 deletions
+7
View File
@@ -79,6 +79,13 @@ float4 screenToModel(float4x4 inverseTransform, float4 screen)
return worldToModel(inverseTransform, world);
}
float4 clipToScreen(float4 clip)
{
float2 texCoord = float2(clip.x, 1.0f-clip.y) / 2.0f + 0.5f;
return float4(texCoord * pViewParams.screenDimensions, clip.z, clip.w);
}
struct Plane
{
float3 n;