I am planning on writing some code for a project I am working on and before I start I was just wondering if its possible to have my code change a texture file after so many seconds have passed.
Without posting actual code I was thinking along these lines.
create sky items day, dawn, dusk and night.
Get info from Skybox item,
After so many seconds get dawn texture.
Return dawn texture to skybox item.
Rinse and repeat for full cycle using my own custom textures.
Would this way of thinking be ok using the skybox already implemented in leadwerks or would I need to create a new skybox script?
Or has anyone already done this that could give me some advice on how to achieve this?
And could I do the same to a player character so that after so many seconds skin becomes sunburnt and clothes become dirty.