You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
483 B
483 B
Add some references and ideas from this IQ article: http://iquilezles.org/www/articles/palettes/palettes.htm
nicolas
- struct exist in GLSL : this is valid
struct my_struct {
vec4 color;
};
uniform my_struct u_colors[2];
void main(void) {
gl_FragColor = u_colors[0].color;
}