Lets renderer bind three.js #35053's CubeArrayTexture (texture_cube_array) on a three that
lacks it, by patching four renderer internals at runtime (see the file header), then verifies the
patched path with a self-test: a 2-cube array uploaded through three, sampled in a TSL material
with cubeTexture( array, dir ).depth( i ), rendered and read back, every cube, face and texel
checked. On any failure it uninstalls and resolves false.
Resolves true at once (patching nothing) when three has CubeArrayTexture natively. Resolves false
without patching on the WebGL backend, on a compatibility-mode device (no cube-array views there,
D2204), or a three revision outside CUBE_ARRAY_SHIM_REVISIONS.
Idempotent per renderer (the same promise); undo with uninstallCubeArraySupport. Call after
await renderer.init(). ReflectionProbes with layout: 'auto' then bakes into a cube array.
Lets
rendererbind three.js #35053's CubeArrayTexture (texture_cube_array) on a three that lacks it, by patching four renderer internals at runtime (see the file header), then verifies the patched path with a self-test: a 2-cube array uploaded through three, sampled in a TSL material withcubeTexture( array, dir ).depth( i ), rendered and read back, every cube, face and texel checked. On any failure it uninstalls and resolves false.Resolves true at once (patching nothing) when three has CubeArrayTexture natively. Resolves false without patching on the WebGL backend, on a compatibility-mode device (no cube-array views there, D2204), or a three revision outside CUBE_ARRAY_SHIM_REVISIONS. Idempotent per renderer (the same promise); undo with uninstallCubeArraySupport. Call after
await renderer.init(). ReflectionProbes withlayout: 'auto'then bakes into a cube array.