Original Post
Hi, I'm trying to write the depth on to an offscreen surface, but all I get is white pixels. I tryed to do something like this: float x; return float4(floor(x) / 256, frac(x), frac(x), frac(x)); I don't know where I got this from but I found it on my notes, so I guess I must have seen this somewhere. Could anyone give me a little hint how to do saving of depth in a color surface should be done? Was trolling the internet all day long. Thx a lot.