mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 15:33:35 +02:00
Update Fade.slh
This commit is contained in:
parent
a206d9e25a
commit
a5fe4709a9
1 changed files with 2 additions and 2 deletions
|
@ -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@>
|
||||
|
|
Loading…
Reference in a new issue