Quantcast
Channel: Question and Answer » hlsl
Viewing all articles
Browse latest Browse all 69

Encoding Float to RG/RGBA and Blending

$
0
0

Encoding a float value inside a RG or RGBA texture is very interesting and useful but it is also become quite useless when you use blending as the result and the values might be altered because of face overlapping.
Is there a way to avoid such issues ?

here is an example of a bad result when encoding depth on the red and green channels and just decoding it again in a post-process effect.

enter image description here


Viewing all articles
Browse latest Browse all 69

Trending Articles