createPointCloud#colorMode¶
Summary¶
createPointCloud#colorMode chooses how points get their colors. In "scalar" mode, the scale transform selects values from packed point data and maps them through the colormap. In "rgba" mode, the renderer uses the separate color channel.
Syntax¶
Notes¶
At creation, explicitly supplied color data implies "rgba" unless you set the mode yourself. With no color source or explicit mode the default is "scalar". Supply one linear RGBA record per point before switching to "rgba". Switch to "scalar" when removing the color source. Assigning a different mode marks uniforms dirty and emits a "visual" change event.