You seem awfully quiet about this subject, did I do something stupid?
Members - Reputation: 996
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.
Crossbones+ - Reputation: 1610
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);
The Rule: Be polite, be professional, but have a plan to kill everyone you meet, ohh, AND STEAL ALL ZE TRIANGLES FROM ZHEM!