@pmndrs/reflections
    Preparing search index...

    Class BabylonCubeCapture

    Renders six-face captures with Babylon and returns them as rgba16float cubes (6 array layers) in WebGPU's cube convention, the input core's ProbeSet takes. One instance per scene and face size; each capture() reuses its ReflectionProbe and output texture (copy the result out, or hand it to ProbeSet.capture() in the next submit, before capturing again).

    Index
    device: GPUDevice
    scene: Scene
    size: number
    • Renders meshes from position (linear HDR, no image processing), flushes Babylon, and records the reorientation into encoder. Returns the cube (valid once encoder is submitted).

      Parameters

      • encoder: GPUCommandEncoder
      • position: Vec3
      • meshes: AbstractMesh[]

      Returns GPUTexture