This works well untill The game FPS Falls Bellow 60 Then I lose sync and the order is reverse. I get this problem.
uniform int framecount < source = "framecount"; >;
if ((framecount % 2) == 1)//even//odd
{
color =Left;
}
else
{
color = Right;
}
So I tried this.
This Works until the game FPS slows down. It seems to me the timer slows down with the game....... This is a problem when trying to keep time that or I am doing something wrong.
uniform float timer < source = "timer"; >;
float FT = 16.7;//frametime for 60FPS more or less
if (int(timer/FT) & 1)
{
color =Left;
}
else
{
color = Right;
}
So I have been trying to do Frame sequential. But, I have a problem keeping time. Also would it be hard to implement Vblank syncing in to reshade? If there already a way I would love to know how to sync to Vblank.
Any help would be nice.
Thank you.......