Not logged inOpenClonk Forum
Up Topic Lava glowing

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Carli

>Then you need to explain it better, I don't understand it.


you have a time factor. from this, you calculate the interpolation factor:
float interpolationFactor = 0.5+0.5*sin(timeFactor)

with this interpolation Factor, you can calculate the color:
vec4 color = interpolationFactor*Texture2D(tex1) + (1-interpolationFactor)*Texture2D(tex2)

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill