• Advertisement
Sign in to follow this  

packing

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

Hi,

 

I'd like to pack a float and two booleans into a rgba8 texture.

Unfortunately I don't really know how to do this :(

The way I imagined this is:

break up the bits of the float in 3 parts, store them in rgb, so they'd get 24 bits precision

store the two booleans in the a channel somehow...

 

any ideas how to do this?

 

best regards,

Yours3lf

Share this post


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

  • Advertisement