Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariosubspace/colorblind-unity
Unity3D shader for simulating colorblindness.
https://github.com/mariosubspace/colorblind-unity
accessibility colorblindness shaders unity3d
Last synced: about 2 months 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-21T22:47:39.000Z (about 7 years ago)
- Last Synced: 2024-08-02T05:21:56.975Z (5 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
![Example image](https://github.com/0x4d4147/readme-images/blob/master/ColorblindUnity/Figure%201.JPG?raw=true)
### 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.
![Example image](https://github.com/0x4d4147/readme-images/blob/master/ColorblindUnity/Figure%202.JPG?raw=true)
![Example image](https://github.com/0x4d4147/readme-images/blob/master/ColorblindUnity/Figure%203.JPG?raw=true)
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).
![Example image](https://github.com/0x4d4147/readme-images/blob/master/ColorblindUnity/Figure%204.JPG?raw=true)
#### 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)