diff --git a/bundle.min.js b/bundle.min.js index 80dcfc2..9b1fa5f 100644 --- a/bundle.min.js +++ b/bundle.min.js @@ -19927,7 +19927,7 @@ }, { name: 'modulateHue', - type: 'combineCoord', + type: 'combine', inputs: [ { type: 'float', @@ -19935,8 +19935,12 @@ default: 1, } ], - glsl: - ` return _st + (vec2(_c0.g - _c0.r, _c0.b - _c0.g) * amount * 1.0/resolution);` + glsl:` + vec3 hsl0 = _rgbToHsv(_c0.rgb); + vec3 hsl1 = _rgbToHsv(_c1.rgb); + hsl0.r += hsl1.b * amount; + hsl0.r = fract(hsl0.r); + return vec4(_hsvToRgb(hsl0.rgb), _c0.a);` }, { name: 'invert', @@ -49423,9 +49427,10 @@ xy += 0.5; return xy;` }, + // This is where it doesn't seem to matter { name: 'modulateHue', - type: 'combineCoord', + type: 'combine', inputs: [ { type: 'float', @@ -49433,8 +49438,12 @@ default: 1, } ], - glsl: - ` return _st + (vec2(_c0.g - _c0.r, _c0.b - _c0.g) * amount * 1.0/resolution);` + glsl:` + vec3 hsl0 = _rgbToHsv(_c0.rgb); + vec3 hsl1 = _rgbToHsv(_c1.rgb); + hsl0.r += hsl1.b*amount; + hsl0.r = fract(hsl0.r); + return vec4(_hsvToRgb(hsl0.rgb), _c0.a);` }, { name: 'invert',