lot of metal changes, but no idea how this stuff works

This commit is contained in:
Dynamitos
2025-02-14 00:39:53 +01:00
parent 52cbdd8470
commit ee03b5fa5f
31 changed files with 335 additions and 157 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ struct PointLight : ILightEnv
bool insidePlane(Plane plane, float3 position)
{
return dot(plane.n, position) - plane.d < -colorRange.w;
return dot(plane.getNormal(), position) - plane.getDistance() < -colorRange.w;
}
bool insideFrustum(Frustum frustum, float3 position, float minDepth, float maxDepth)