In C++ to make a float be the max value, I have to write:
float a =FLT_MAX;
how do I do this in HLSL?
float max value
1 reply to this topic
Members - Reputation: 2087
Posted 22 September 2012 - 12:35 AM
I see FLT_MAX defined to 3.402823466e+38F. Perhaps you can try setting a variable to that value directly?
Me+PC=clb.demon.fi | C++ Math and Geometry library: MathGeoLib, test it live! | C++ Game Networking: kNet | 2D Bin Packing: RectangleBinPack | Use gcc/clang/emcc from VS: vs-tool | Resume+Portfolio | gfxapi, test it live!