2009/6/7 Frank Richter frank.richter@gmail.com:
On 07.06.2009 22:22, Henri Verbeet wrote:
Even if the format isn't lockable, you can still use the data with a shader.
If it's a typical depth format the shader will see normalized values.
Yes, but floating point formats aren't "typical".
Information on DF16 seems to be sparse, one thing I found was: http://discussms.hosting.lsoft.com/SCRIPTS/WA-MSD.EXE?A2=ind0611A&L=DIRE... It says that DF16 returns "real" depth values - which would indeed be normalized.
Ok, I guess the format could just be named badly, although Chris makes a good point about precision, even if the values are normalized.
Some ATI graphics demos (e.g. Toy Shop).
If those demos have source, it might be useful to look at that for hints. At the very least this needs tests to determine if the values are normalized or not.