mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
Update shaders_palette_switch.c
This commit is contained in:
@@ -109,7 +109,7 @@ int main(void)
|
|||||||
if (currentPalette >= MAX_PALETTES) currentPalette = 0;
|
if (currentPalette >= MAX_PALETTES) currentPalette = 0;
|
||||||
else if (currentPalette < 0) currentPalette = MAX_PALETTES - 1;
|
else if (currentPalette < 0) currentPalette = MAX_PALETTES - 1;
|
||||||
|
|
||||||
// Send new value to the shader to be used on drawing.
|
// Send palette data to the shader to be used on drawing
|
||||||
// NOTE: We are sending RGB triplets w/o the alpha channel
|
// NOTE: We are sending RGB triplets w/o the alpha channel
|
||||||
SetShaderValueV(shader, paletteLoc, palettes[currentPalette], SHADER_UNIFORM_IVEC3, COLORS_PER_PALETTE);
|
SetShaderValueV(shader, paletteLoc, palettes[currentPalette], SHADER_UNIFORM_IVEC3, COLORS_PER_PALETTE);
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user