Skip to main content
GameDev.net gamedev.net
🔒 Locked

packing

Started by Yours3!f Jan 12, 2013 at 1:00 PM 0 replies 1k views
Original Post
Yours3!f
Yours3!f

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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.