Am Dienstag, 3. Juni 2008 10:02:26 schrieb Fabian Bieler:
The shader compiler can also do better optimization with hard-coded constants (particularly if the constants are 0 or 1). I've seen the nvidia-compiler remove entire code paths because of this in a hl2-shader.
Really? Do you have any evidence for this? In that case we might want to use Vitaliys original patch which just changed the precision of the printed float, since the patches I just sent break this ability. Henri and I considered them as theoretical, since the HLSL compiler or shader author would have removed those codepaths already