mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:14: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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue