Here's my guess as to what it is doing:
Note that fract(x) = x - floor(x).
let C = ceil(0.1 + in.texCoord.x * 0.8) * 1000000 = 1000000
colorSample.x = fract(C) + in.texCoord.x
= C - floor(C) + in.texCoord.x
= ( C + in.texCoord.x ) - floor(C) <--- this is what fast-math allows
The range of C + in.texCoord.x will be 1000000 to 1000001.
This reduces the available precision for the fractional part.
Is this a bug? Probably not, it's what fast-math is for. Don't enable fast-math unless you have a good reason.
Topic:
Graphics & Games
SubTopic:
General
Tags: