Skip to content

Commit

Permalink
Merge ad05950 into f9ab6a3
Browse files Browse the repository at this point in the history
  • Loading branch information
metaquanta authored Sep 4, 2020
2 parents f9ab6a3 + ad05950 commit c9de3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/shader-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ We define `color_hsv2rgb` in a shader module:
const colorModule = {
name: 'color',
fs: `
vec3 color_hsv2rgb(vec3 hsv) {
vec3 color_hsv2rgb(vec3 c) {
vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
vec3 rgb = c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
Expand Down

0 comments on commit c9de3c7

Please sign in to comment.