Skip to content

Commit

Permalink
fix: wrong skylighting pi (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentalimbed authored Jul 31, 2024
1 parent 6c76c05 commit b755ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/Skylighting/Shaders/Skylighting/Skylighting.hlsli
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ sh2 fauxSpecularLobeSH(float3 N, float3 V, float roughness)
float3 dominantDir = normalize(D);

sh2 directional = shEvaluate(dominantDir);
sh2 cosineLobe = shEvaluateCosineLobe(dominantDir) / PI;
sh2 cosineLobe = shEvaluateCosineLobe(dominantDir) / shPI;
sh2 result = shAdd(shScale(directional, f), shScale(cosineLobe, 1 - f));

return result;
Expand Down

0 comments on commit b755ace

Please sign in to comment.