Skip to content

Commit

Permalink
feat(shaders): use strength across all shaders for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
loqusion committed May 5, 2024
1 parent 3d61135 commit e10af08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shaders/blue-light-filter.glsl.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ varying vec2 v_texcoord;
uniform sampler2D tex;

const float temperature = {{#nc}}{{temperature}} ? 2600.0{{/nc}};
const float temperatureStrength = {{#nc}}{{temperatureStrength}} ? 1.0{{/nc}};
const float temperatureStrength = {{#nc}}{{strength}} ? 1.0{{/nc}};

#define WithQuickAndDirtyLuminancePreservation
const float LuminancePreservationFactor = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion shaders/color-filter.glsl.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ varying vec2 v_texcoord;
uniform sampler2D tex;

// Intensity of filter (1.0 - 0.0)
const float intensity = {{#nc}}{{intensity}} ? 0.2{{/nc}};
const float intensity = {{#nc}}{{strength}} ? 0.2{{/nc}};

// Enum for color correction type
const int PROTANOPIA = 0;
Expand Down

0 comments on commit e10af08

Please sign in to comment.