Variable readAutoMovieCubeShadowDepthConst
readAutoMovieCubeShadowDepth: (
renderer: THREE.WebGLRenderer,
target: THREE.RenderTarget,
) => WebGLTexture | null = ...
Type Declaration
-
- (renderer: THREE.WebGLRenderer, target: THREE.RenderTarget): WebGLTexture | null
-
Parameters
- renderer: THREE.WebGLRenderer
- target: THREE.RenderTarget
Returns WebGLTexture | null
Read a native cube shadow target's owned depth handle through its framebuffer. The target is a retained shadow draw resource, not an unallocated authored target. The SDK exposes shadow maps as generic RenderTarget values; observe their WebGL identity before binding rather than asserting a cube subtype's unrelated texture-array type. Native queries avoid private properties. Restore the caller's target, face and mip even when binding or the query fails. A depth version of zero proves that this r186 native product has never been initialized, so refuse before binding can allocate it. A positive version is not upload evidence: the retained-draw, exact-context precondition remains the caller's responsibility, including after CPU needsUpdate assignments.