Fixed packed map shader.

This commit is contained in:
2025-03-02 19:38:09 -06:00
parent 122997c58c
commit 7c150a9a7c
6 changed files with 27 additions and 34 deletions

View File

@ -3,6 +3,9 @@
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#define PACKED_U8_PER_UI 4
#define PACKED_U8_PER_UVEC4 PACKED_U8_PER_UI / 4
uint packedGetU8(uint position, uint data) {
return (data >> (position * 8u)) & 0xFFu;
}