Hey everyone, run across a problem that I am having trouble solving.
Basically I am implementing the day/night cycle and had a quick look over the demo code which is great but for our game I have several environment text files for different points in time (6am, 12pm, 6pm, 12am).
I know how to load the files and get the values out of them, but I am having a problem figuring out how to blend (interpolate) or step between the values from each environment file. Heres an example from the 12pm and 6pm environment files.
Code:
Sun // 12pm
{
...
RaysColor = "0.537, 0.416, 0.176, 1.000"
}
Sun // 6pm
{
...
RaysColor = "0.856, 0.682, 0.337, 1.000"
}
As you can see I can't linearly step between the two, can I even do this using say Lerp functions? I know that Lerp(...) has Vec parameters but the step for each value in the Vec will be different so I didn't think I could use Lerp?
Has anyone got any recommendations on how I can solve this?