0

I have deferred MRT render written in WebGL2. In one of standard (non float) destination textures I have two available byte components, say x and y. I want to pack and lately unpack a floating value with a range [0..100].

How to implement conversion forth and back between between float and two bytes components preserving as much precision as possible?

gman
  • 100,619
  • 31
  • 269
  • 393
Roman Kolesnikov
  • 11,777
  • 11
  • 44
  • 67

0 Answers0