Skip to content

Commit

Permalink
Fix solar spectrum when rendering zero-order scattering
Browse files Browse the repository at this point in the history
  • Loading branch information
10110111 committed Oct 16, 2022
1 parent 981f17d commit 568eadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaders/render.frag
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ layout(location=1) out vec4 radianceOutput;

vec4 solarRadiance()
{
return solarIrradianceAtTOA/(PI*sqr(sunAngularRadius));
return solarIrradianceAtTOA*solarIrradianceFixup/(PI*sqr(sunAngularRadius));
}

void main()
Expand Down

0 comments on commit 568eadf

Please sign in to comment.