summaryrefslogtreecommitdiffstats
path: root/res/effectlib/normalizedMix.glsllib
diff options
context:
space:
mode:
Diffstat (limited to 'res/effectlib/normalizedMix.glsllib')
-rw-r--r--res/effectlib/normalizedMix.glsllib2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/effectlib/normalizedMix.glsllib b/res/effectlib/normalizedMix.glsllib
index 7a44022..fc90b46 100644
--- a/res/effectlib/normalizedMix.glsllib
+++ b/res/effectlib/normalizedMix.glsllib
@@ -36,7 +36,7 @@ vec4 normalizedMix( in bsdf_component components[1] )
vec4 normalizedMix( in bsdf_component components[2] )
{
float sum = components[0].weight + components[1].weight;
- float invSum = ( sum <= 1.0f ) ? 1.0f : 1.0f / sum;
+ float invSum = ( sum <= 1.0 ) ? 1.0 : 1.0 / sum;
return( invSum * ( components[0].weight * components[0].component + components[1].weight * components[1].component ) );
}