You seem awfully quiet about this subject, did I do something stupid?
Members - Reputation: 613
Posted 09 September 2013 - 03:00 PM
A few things:
- What format is your back/front textures? If it's 8bit you should scale to 0-1 range for output (if you're using HDR values then you should be fine).
- Your position should be in texture space. That is, bias and scale it from [-1, 1] to [0, 1] (pos * 0.5 + 0.5) when you read your texture.
Members - Reputation: 1003
Posted 10 September 2013 - 10:29 AM
Btw, when adding the normalization of the rays, this happens: ( It repeats itself )
float3 dir = normalize(back - front);
My Blog - Cuboid Zone
“C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg.” - Bjarne Stroustrup