Build the exact model material identities requested by simulated surfaces.
Model parts cite materials inside one model, but water, soft furnishing, and
planting records cite only a material id. Such a citation therefore resolves
across the compiled model population and must have exactly one definition.
Repeated declarations are one definition only when their complete records are
structurally equal. Missing and conflicting declarations are refused before
any material is built, so model order can never decide a visible result.
Each admitted id is built once and shared by every borrowing surface. Texture
assets are primed through the shot cache before synchronous material
construction, together with the images carried by the models that declare
the requested materials; that cache owns binding-private texture clones and decoded
sources, while the returned library owns only the THREE.Material objects.
Construction refusal retires already-built materials independently. Disposal
attempts every material once, retains failed ownership and preserves the same
failure for repeated callers.
Build the exact model material identities requested by simulated surfaces.
Model parts cite materials inside one model, but water, soft furnishing, and planting records cite only a material id. Such a citation therefore resolves across the compiled model population and must have exactly one definition. Repeated declarations are one definition only when their complete records are structurally equal. Missing and conflicting declarations are refused before any material is built, so model order can never decide a visible result.
Each admitted id is built once and shared by every borrowing surface. Texture assets are primed through the shot cache before synchronous material construction, together with the images carried by the models that declare the requested materials; that cache owns binding-private texture clones and decoded sources, while the returned library owns only the
THREE.Materialobjects. Construction refusal retires already-built materials independently. Disposal attempts every material once, retains failed ownership and preserves the same failure for repeated callers.