瀏覽代碼

Update shaders_palette_switch.c

pull/3983/head
Ray 1 年之前
父節點
當前提交
479bd84400
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      examples/shaders/shaders_palette_switch.c

+ 1
- 1
examples/shaders/shaders_palette_switch.c 查看文件

@ -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);
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------

Loading…
取消
儲存