Skip to content

OutlinePass cant be used with BatchedMesh #30951

@luigidenora

Description

@luigidenora

Description

When we try to use BatchedMesh and OutlinePass it throws an exception.

Reproduction steps

  1. Create a BatchedMesh
  2. Create OutlinePass and set the BatchedMesh as selected obj.
  3. Render.

Code

const outlinePass = new OutlinePass(
    new THREE.Vector2(window.innerWidth, window.innerHeight),
    scene,
    camera,
  )
const batchedMesh = new THREE.BatchedMesh(10, 5000, 10000, material)
outlinePass.selectedObjects = [batchedMesh]

Live example

Screenshots

Image

Version

0.175.0

Device

Desktop

Browser

Chrome

OS

Windows

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions