@threlte/extras

<Billboard>

This component is a port of drei’s <Billboard> component which rotates its contents to always face the camera or specified object.

Examples

Basic Example

Billboard.svelte
<script lang="ts">
  import { T } from '@threlte/core'
  import { Billboard } from '@threlte/extras'
</script>

<Billboard>
  <T.Mesh>
    <T.MeshStandardMaterial />
    <T.PlaneGeometry args={[2, 2]} />
  </T.Mesh>
</Billboard>

To disable the billboard from rotating its contents to face the camera, you can optionally pass in a follow prop set to false.

Component Signature

<Billboard> extends <T . Group> and supports all its props, slot props, bindings and events.

Props

name
type
required
default

follow
boolean | THREE.Object3D
no
true