All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
33
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to Graphics and GPU Programming
float max value
Graphics and GPU Programming
Programming
Started by
lomateron
September 22, 2012 04:57 AM
0
comments, last by
clb
11 years, 7 months ago
lomateron
491
Author
September 22, 2012 04:57 AM
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?
Cancel
Save
Advertisement
clb
2,152
September 22, 2012 06:35 AM
I see FLT_MAX defined to 3.402823466e+38F. Perhaps you can try setting a variable to that value directly?
Cancel
Save
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
Do your part to stop global warming and climate change
GDNet Lounge
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
Understanding the wavy-like shape in alpha-testing magnification for text rendering
Graphics and GPU Programming
Advertisement
Recommended Tutorials
Understanding Reverse Polish Notation
Math and Physics
16-Bit Pixels
Graphics and GPU Programming
Writing Endian Independent Code in C++
General and Gameplay Programming
Keyboard I/O Considerations in Game Development
General and Gameplay Programming
Ditching Diffuse Maps
Visual Arts
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top