Sign in to follow this  

float max value

This topic is 1943 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
I see FLT_MAX defined to 3.402823466e+38F. Perhaps you can try setting a variable to that value directly?

Share this post


Link to post
Share on other sites
Sign in to follow this