packing

Started by
0 comments, last by Yours3!f 11 years, 3 months ago

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

Advertisement

I think I found the answer:
http://www.gamedev.net/topic/617368-pack-depth-into-rgb/

This topic is closed to new replies.

Advertisement