2
$\begingroup$

I have a skydome model to use in my game and 2 sky materials for it I want to have it fade between during an animation, like a day-night cycle with a smooth transition between day and night skies. I have the placements of all of my keyframes ready for the animation, but I need to know what property(s) of my materials I need to change to achieve this.

$\endgroup$
0
$\begingroup$

I don't know whether you can fade between two materials, but you could easily set up a mix shader within a single material and animate the factor with keyframes. So the single material would contain shader setups for your day sky and your night sky, and the mix shader would switch between the two. It is possible to mix between background shaders FYI (although since you say you have a "skydome" perhaps you are talking about mesh materials, not background materials . . . it's the same principle either way).

enter image description here

$\endgroup$
  • $\begingroup$ Thank you for your input but if I wasn't clear before I need this to work in the BGE. Updated post. $\endgroup$ – JakoNintenCraft Feb 2 '18 at 0:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.