PixelShaderGen: Add a note about a random idea which should be checked with hardware tests.

This commit is contained in:
Tony Wasserka 2014-02-28 20:53:31 +01:00
parent 6fcbda6752
commit e2e1c5c905
1 changed files with 2 additions and 0 deletions

View File

@ -988,6 +988,8 @@ static inline void WriteFog(T& out, pixel_shader_uid_data& uid_data)
// perspective
// ze = A/(B - (Zs >> B_SHF)
// TODO: Verify that we want to drop lower bits here! (currently taken over from software renderer)
// Maybe we want to use "ze = (A << B_SHF)/((B << B_SHF) - Zs)" instead?
// That's equivalent, but keeps the lower bits of Zs.
out.Write("\tfloat ze = (" I_FOGF"[1].x * 16777215.0) / float(" I_FOGI"[0].y - (zCoord >> " I_FOGI"[0].w));\n");
}
else