Skip to content

Commit

Permalink
Fix makeNormalizedSG (#293)
Browse files Browse the repository at this point in the history
* refactor: fix makeNormalizedSG
  • Loading branch information
hhhhkrx authored Jul 23, 2024
1 parent 16fcb63 commit e2acac5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ return sg;

vec3 sgdiffuseLighting(vec3 light ,vec3 normal ,vec3 scatterAmt)
{
FsphericalGaussian Kernel = MakeNormalizedSG(light, 1.0 / max(scatterAmt.xyz,0.0001));
FsphericalGaussian Kernel = makeNormalizedSG(light, 1.0 / max(scatterAmt.xyz,0.0001));
vec3 diffuse = dotCosineLobe(Kernel,normal);
// Tone Mapping
vec3 diffuselobe = max(vec3(0.0),(diffuse-0.004));
Expand Down

0 comments on commit e2acac5

Please sign in to comment.