Jump to content
  • Advertisement
Sign in to follow this  

packing data for shader constants

This topic is 2264 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

I'd like to pass some values as vertex shader constants. Since I don't need whole float precision (nor do I have space), I'm wondering what would be best way to pack/compress multiple unsigned 8/16bit integer values into one float constant. Target range in shader is 0.0 - 1.0, basically uv coordinates.

forgot to mention, it's shader version 3

Share this post

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!