MCPcopy Create free account
hub / github.com/NMWplays/Glowify / hue2rgb

Function hue2rgb

theme.js:69–76  ·  view source on GitHub ↗
(p2, q2, t)

Source from the content-addressed store, hash-verified

67 precision highp float;
68 uniform sampler2D u_texture;
69 uniform float u_time;
70 uniform float u_intensity;
71 varying vec2 v_texCoord;
72
73 vec3 mod289(vec3 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }
74 vec2 mod289(vec2 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }
75 vec3 permute(vec3 x) { return mod289(((x*34.0)+1.0)*x); }
76
77 float snoise(vec2 v) {
78 const vec4 C = vec4(0.211324865405187, 0.366025403784439,
79 -0.577350269189626, 0.024390243902439);

Callers 2

enhanceColorFunction · 0.85
boostColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected