Creates a color map function that interpolates between two colors. Use colormaps in the ShadingScene.addColorMap method to define the colors of the returned Three.js geometry.
The input colors.
The starting color.
The ending color.
A function that takes a value t (0 to 1) and returns an interpolated color.
Creates a color map function that interpolates between two colors. Use colormaps in the ShadingScene.addColorMap method to define the colors of the returned Three.js geometry.