Skip to content

Commit

Permalink
Fix disallowed float definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianThijssen committed Jul 29, 2019
1 parent 4fdd49d commit 6b246f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/Shaders/PrefilterEnvmap.frag
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ vec3 PrefilterEnvMap(float Roughness, vec3 R)
vec3 Color = vec3(0, 0, 0);

uint NumSamples = 512u;
float TotalWeight = 0f;
float TotalWeight = 0.0;
for (uint i = 0u; i < NumSamples; i++)
{
vec2 Xi = Hammersley(i, NumSamples);
Expand Down

0 comments on commit 6b246f2

Please sign in to comment.