• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

SOLVED Shader timer question

Tyg

Member
Hi .. i know i made a timer that goes from 0 to 100 in a shader
and i can't remember which one..it goes from 0 to 100 which i can make 0 to 1
but what i need help with is to reverse it like a ping pong
what i am needing it for is for the shader to have the basetexture and the channel0
it goes from day to night with the timer cycle by mixing the 2 textures
but keeps going without the ping pong effect
any help would be appreciated

just figured it out
abs(sin(iTime/100.))
 
Last edited:
Top