GLSL3 picking shader source for points + ShaderSource record.
ShaderSource
Mirrors the visual point shader in rendering/materials/point/shader-glsl.ts with three picking-specific additions:
rendering/materials/point/shader-glsl.ts
uNodeId
vNodeId
vElementId
(nodeId, elementId-low16, brightness, elementId-high16)
Source-of-truth for GLSL3; the WebGPU counterpart lives in ./pick.tsl and is referenced through the ShaderSource.webgpu factory below.
./pick.tsl
ShaderSource.webgpu
GLSL3 picking shader source for points +
ShaderSourcerecord.Mirrors the visual point shader in
rendering/materials/point/shader-glsl.tswith three picking-specific additions:uNodeIduniform +vNodeId/vElementIdvaryings, written into the RGBA32F pick buffer as(nodeId, elementId-low16, brightness, elementId-high16).Source-of-truth for GLSL3; the WebGPU counterpart lives in
./pick.tsland is referenced through theShaderSource.webgpufactory below.