- Home /
Hlsl Pow function platform-dependent error
Hi guys, it looks like the pow function does crazy things if the exponent is too big. For example if it's 10 it causes the shader to simply return 0, regardless the result of the operation.
The interesting point is, how can this be dependent on the OS (it actually is, the error does not happen on Linux of Mac)? And it also depends on the project it is into: the shader is working right in one project, and gives the error in another.
Comment
Answer by bteitler · Nov 25, 2017 at 08:31 AM
Encountered the same thing just now. Editor works fine, player on my 870m (on the same machine) is broken.