diff options
| author | Ray <[email protected]> | 2022-08-02 10:31:31 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-08-02 10:31:31 +0200 |
| commit | 5fc1538c24f61bd5973ce6f3514ecaadef8f1cd9 (patch) | |
| tree | bd81bb12ac15d4d9697baaa6d448cdd15c4a85cf /examples/shaders/shaders_palette_switch.data | |
| parent | 192e2026607b27e0226a1e2c4336799b77a2b4e8 (diff) | |
| download | raylib.com-5fc1538c24f61bd5973ce6f3514ecaadef8f1cd9.tar.gz raylib.com-5fc1538c24f61bd5973ce6f3514ecaadef8f1cd9.zip | |
Update examples to raylib 4.2
Diffstat (limited to 'examples/shaders/shaders_palette_switch.data')
| -rw-r--r-- | examples/shaders/shaders_palette_switch.data | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shaders/shaders_palette_switch.data b/examples/shaders/shaders_palette_switch.data index e5b038d..25b4963 100644 --- a/examples/shaders/shaders_palette_switch.data +++ b/examples/shaders/shaders_palette_switch.data @@ -20,9 +20,9 @@ void main() // Convert the (normalized) texel color RED component (GB would work, too) // to the palette index by scaling up from [0, 1] to [0, 255]. int index = int(texelColor.r*255.0); - + ivec3 color = ivec3(0); - + // NOTE: On GLSL 100 we are not allowed to index a uniform array by a variable value, // a constantmust be used, so this logic... if (index == 0) color = palette[0]; |
