Applies the material states to a node material in place, starting from whatever it already outputs
(its colorNode/roughnessNode/… if set, else its colour, maps and scalars). Sets alphaTest = 0.5
when foliage or cut-outs need it. Call once per material. Vertex colours are folded into the base colour
(and vertexColors turned off); InstancedMesh.instanceColor still multiplies the result, so tint
instances through colorNode instead if their snow and ash should stay white and grey.
Applies the material states to a node material in place, starting from whatever it already outputs (its
colorNode/roughnessNode/… if set, else its colour, maps and scalars). SetsalphaTest = 0.5when foliage or cut-outs need it. Call once per material. Vertex colours are folded into the base colour (andvertexColorsturned off);InstancedMesh.instanceColorstill multiplies the result, so tint instances throughcolorNodeinstead if their snow and ash should stay white and grey.