Colorblind Accessibility

This shader is originally from this reddit thread


TL;DR: You can add a colorblind accessibility to any project in minutes with simple post-process shader.


Shader code
shader_type canvas_item;

uniform int mode = 0;

void fragment() {
	vec4 px = texture(SCREEN_TEXTURE, SCREEN_UV);
	if (mode==1) { px = px.gbra; }
	if (mode==2) { px = px.brga; }
	if (mode==3) { px = px.bgra; }
	COLOR = vec4(px.rgb,1.0);
accessibility, Color blind
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.
Notify of

Inline Feedbacks
View all comments