MusNik

Palette Shader Quick Fix

Apr 8th, 2020
983
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. testPos = vec2(corner.x + u_pixelSize.x * floor(u_paletteId + 1.0), i);
  2. return mix(texture2D(u_palTexture, vec2(testPos.x - u_pixelSize.x, testPos.y)), texture2D(u_palTexture, testPos), fract(u_paletteId));
RAW Paste Data