-
-
Save daniel-j/1676735 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FRAGMENT SHADER | |
precision mediump float; | |
uniform vec2 u_position; | |
uniform vec3 u_palette[256]; | |
void main() { | |
int index = 5; | |
vec3 palColor = u_palette[index]; | |
gl_FragColor = vec4(palColor, 1.0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment