Skip to content

Commit

Permalink
feat(shaders): add aliases for color-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
loqusion committed May 3, 2024
1 parent 6b0cd0b commit 842ffda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shaders/color-filter.glsl.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ const float intensity = {{#nc}}{{intensity}} ? 0.2{{/nc}};

// Enum for color correction type
const int PROTANOPIA = 0;
const int REDGREEN = PROTANOPIA;
const int DEUTERANOPIA = 1;
const int GREENRED = DEUTERANOPIA;
const int TRITANOPIA = 2;
const int BLUEYELLOW = TRITANOPIA;

// Color correction type
const int type = {{#nc}}{{type}} ? PROTANOPIA{{/nc}};
Expand Down

0 comments on commit 842ffda

Please sign in to comment.