forked from Dynamitos/Seele
Fixing basepass light culling data
This commit is contained in:
1 parent
99ee991bf5
commit
15813ba612
9 files changed
+43
-54
No files matched your search
@@ -30,7 +30,7 @@ struct PointLight : ILightEnv
|
||||
float3 lightDir_TS = mul(params.tbn, lightDir_WS);
|
||||
float d = length(lightDir_TS);
|
||||
float illuminance = max(1 - d / colorRange.w, 0);
|
||||
return illuminance * brdf.evaluate(params.tbn, params.viewDir_TS, normalize(lightDir_TS), colorRange.xyz);
|
||||
return illuminance * brdf.evaluate(params.tbn, params.viewDir_TS, -normalize(lightDir_TS), colorRange.xyz);
|
||||
}
|
||||
float3 getClipPosition()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user