Encode six values in rgba16float

For GameMaker to be used mainly with web exports, as version of WebGL doesn't support MRT or rgba32float textures.

There are two encoders:

  • Simpler for encoding three 7bit values in two F16
  • More complex for encoding three 10bit values in two F16.

Encoders encode three values into two, which can be used to store six values in rgba16float.

  • Value range for simpler is 0 to 127
  • Value rangee for complex is 0 to 1023
  • Encoders assume whole numbers as inputs, and will give them as outputs. Rerange them however necessary.

- - -

Github page: 

Encode-six-values-to-rgba16float/README.md at main · HannulaTero/Encode-six-values-to-rgba16float (github.com)

GX.games example:

https://gx.games/games/g7pmw7/encode-six-7bit-values-into-rgba16float/tracks/cb2...

Published 8 days ago
StatusReleased
CategoryAssets
AuthorTeroHannula
Made withGameMaker
Tagsdecode, encode, GameMaker, glsl, glsles, gms2, pack, Shaders, web, webgl

Download

Download NowName your own price

Click download now to get access to the following files:

EncodeDecode_threetwof16_Project.yyz 37 kB
EncodeDecode_threetwof16_Windows.zip 4.3 MB

Leave a comment

Log in with itch.io to leave a comment.