Colour vision deficiency simulation
In your harnessGodot shaderMIT
Simulate protanopia, deuteranopia, tritanopia or achromatopsia on the whole screen with a severity mix, to check that a game's colours stay distinguishable for colour-blind players.

What it takes and gives
- Shader type
- spatial
- Render modes
- unshaded, cull_disabled, depth_test_disabled, depth_draw_never, skip_vertex_transform, fog_disabled
- Parameters
- screen_texture (sampler2D), mode (int = 1), severity (float = 1), split_view (bool = no)
- Use it on
- A MeshInstance3D with a 2 x 2 QuadMesh,
material.tresas its material override and a large extra cull margin, as indemo.tscn. - Result
- The scene as seen with deuteranopia: reds and greens collapse toward ochre and olive while blues remain.
- Renderers
- compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
- Placement
- res://baltor/godot_shaders/post_color_blindness/
Limits. A simulation for testing, not a correction filter, and only for typical dichromacy. Individual vision varies. The pass assumes the screen texture holds sRGB-encoded colour. The pass reads Godot's screen texture after opaque geometry, so transparent objects drawn after it are not processed and its order among other transparent passes is not controlled.
Details
- Kind
- Godot shader
- Engine
- Godot 4.3 or later
- Files
- 11 files, 60.9 KB
- Licence
- MIT
- Declared effects
- reads files, runs commands
- Checked with
- Godot 4.7.2, opengl3 compatibility (Mesa llvmpipe, Xvfb)
- Checks
- contract static, engine run, engine log clean, shader in scene, capture written, render not uniform, shader changes pixels
- Techniques
- Machado et al. 2009 colour vision deficiency matrices, sRGB to linear conversion, Rec. 709 luminance for achromatopsia
- Tags
- godot shader, spatial, post-process, accessibility, color blindness, simulation, colour vision, full-screen
- Identity
library.supply.creative_originals.73e5e0a47ac5255d678f0353.79a12cd169632b24- Version
79a12cd169632b24078ccbf94668dd815b599ff28b229043ecaeca73190ed94a
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.

