trying to fix light culling still
This commit is contained in:
1 parent
7f019a28b4
commit
bc09920462
5 files changed
+22
-8
No files matched your search
@@ -43,9 +43,9 @@ struct PointLight : ILightEnv
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
//if(positionVS.z - range > zNear || positionVS.z + colorRange.w < zFar)
|
||||
if(positionVS.z - colorRange.w > zNear || positionVS.z + colorRange.w < zFar)
|
||||
{
|
||||
// result = false;
|
||||
result = false;
|
||||
}
|
||||
for(int i = 0; i < 4 && result; ++i)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user