Broadcast a glass-partition mode to every registered data mesh's material (the
refraction split's per-pass write; glass-partition.ts). Materials without the
uniform — three's own, and the pick materials, which live in the pick scene and never
register here — are left alone. Shared materials are written more than once, which
setGlassPartition makes a cheap no-op. Returns how many materials changed.
Broadcast a glass-partition mode to every registered data mesh's material (the refraction split's per-pass write;
glass-partition.ts). Materials without the uniform — three's own, and the pick materials, which live in the pick scene and never register here — are left alone. Shared materials are written more than once, whichsetGlassPartitionmakes a cheap no-op. Returns how many materials changed.