Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/color/webglColormapGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ vec4 ' + colormapName + '(float n) {\
x = vec2('+inMin+', '+inMax+'); // input value min and max in vec2\
y0 = vec3('+outMinR+', '+outMinG+', '+outMinB+') / 255.0; // min output val\
y1 = vec3('+outMaxR+', '+outMaxG+', '+outMaxB+') / 255.0; // max output val'
}';
};

}
});
}

};

// in the original, we used if/else so we do only one range comparison,
// but it's harder to concisely write, so here we're just doing a repeated if statement.
Expand All @@ -91,4 +91,4 @@ vec4 ' + colormapName + '(float n) {\
}'

return fn;
}
};