Is changing textures gradually possible? #4827
Answered
by
elalish
danilokrulj
asked this question in
Q&A
-
Title describes the question really. Is changing textures gradually, instead of instantly, possible? And if it is, how could it be done? |
Beta Was this translation helpful? Give feedback.
Answered by
elalish
Jul 1, 2024
Replies: 1 comment 1 reply
-
No, we don't have an API for that, mostly because it's actually pretty hard. Textures can be different sizes, so you'd need a shader to mix them together and render to a third texture every frame. I think it would introduce too many edge cases. BaseColorFactor is multiplied onto the BaseColorTexture, so you could fade to black, switch, then fade back in. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
danilokrulj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, we don't have an API for that, mostly because it's actually pretty hard. Textures can be different sizes, so you'd need a shader to mix them together and render to a third texture every frame. I think it would introduce too many edge cases. BaseColorFactor is multiplied onto the BaseColorTexture, so you could fade to black, switch, then fade back in.