Update Fade.slh

This commit is contained in:
Sam Gondelman 2018-11-14 17:50:21 -08:00 committed by GitHub
parent a206d9e25a
commit a5fe4709a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ float evalFadeGradient(FadeObjectParams params, vec3 position) {
float evalFadeAlpha(FadeObjectParams params, vec3 position) {
float alpha = evalFadeGradient(params, position) - params.threshold;
alpha *= 1.0 - 2.0 * fadeParameters[params.category]._isInverted;
alpha *= 1.0 - 2.0 * float(fadeParameters[params.category]._isInverted);
return alpha;
}
@ -164,4 +164,4 @@ layout(location=RENDER_UTILS_ATTR_FADE3) out vec4 _fadeData3;
_fadeData3 = inTexCoord4;
<@endfunc@>
<@endif@>
<@endif@>