https://github.com/mariosubspace/colorblind-unity
Unity3D shader for simulating colorblindness.
https://github.com/mariosubspace/colorblind-unity
accessibility colorblindness shaders unity3d
Last synced: 23 days ago
JSON representation
Unity3D shader for simulating colorblindness.
- Host: GitHub
- URL: https://github.com/mariosubspace/colorblind-unity
- Owner: mariosubspace
- License: mit
- Created: 2017-10-18T06:06:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-21T22:47:39.000Z (over 7 years ago)
- Last Synced: 2024-08-02T05:21:56.975Z (10 months ago)
- Topics: accessibility, colorblindness, shaders, unity3d
- Language: C#
- Size: 141 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Colorblind Shader for Unity

### Usage
#### Scene
The test scene is called **Colorblind Test Scene**. This scene is set up with a few colored test objects and a Camera with the image effect shader applied.


Edit the shader to control the type of colorblindness to simulate, the error mask effect texture, the error mask strength, and the error blinking effect speed (0 for none).

#### Color Space
Your project **MUST** be configured to use **Linear color**.
_Edit > Project Settings > Player > Other Settings > Color Space_If you need to use Gamma, then you'll need to make a modification in the shader code to map RGB to linear RGB and back. Otherwise, shoot me a request to add it (via Twitter or GitHub or something).
## Sources
Algorithm:
http://ixora.io/projects/colorblindness/color-blindness-simulation-research/Error texture:
https://www.toptal.com/designers/subtlepatterns/worms/## Releases
[Get as Unity Package](https://github.com/0x4d4147/ColorblindUnity/releases)
## License
[MIT License (c) 2017](https://github.com/0x4d4147/ColorblindUnity/blob/master/LICENSE)