MotionScript

@motion-script/core


@motion-script/core / forEachTexture3D

Function: forEachTexture3D()

forEachTexture3D(g3, visit): void

Defined in: render3d/walk.ts:47

Visit every Texture3D a scene references — material map slots, shader and post-effect uniforms, and the background.

Visits duplicates; callers dedupe on whatever key they care about. Does not cover model/environment resources, which are not textures and go through the backend's own loader — see track3DResources.

Parameters

g3

Graphics3D

visit

(texture) => void

Returns

void