lot of metal changes, but no idea how this stuff works
This commit is contained in:
1 parent
52cbdd8470
commit
ee03b5fa5f
31 files changed
+335
-157
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user