Compose effective rendering attributes for a scene-graph node.
Pure helper: given a scene graph and a node, return a copy of the
node's attrs with opacity, absorption, gamma, intensity,
offset, blending_mode, join, layer_order, and colormap (with its
customLutBytes) replaced by the values from
getEffectiveAttrs. Falls back to the raw attrs when the
scene graph is unavailable.
Centralized here so the scene loader's class method becomes a
one-line delegation and the composition rules can be tested
without touching the loader.
Compose effective rendering attributes for a scene-graph node.
Pure helper: given a scene graph and a node, return a copy of the node's attrs with
opacity,absorption,gamma,intensity,offset,blending_mode,join,layer_order, andcolormap(with itscustomLutBytes) replaced by the values from getEffectiveAttrs. Falls back to the raw attrs when the scene graph is unavailable.Centralized here so the scene loader's class method becomes a one-line delegation and the composition rules can be tested without touching the loader.