1. @threlte/core
  2. Pass

@threlte/core

Pass

By default, threlte will render using the regular WebGLRenderer. If any Pass is added to the scene, the EffectComposer will take over the rendering. A default RenderPass is added automatically and rendered before any <Pass>.

Import

Source

Github View Source Code

Package

NPM View Package

Related Docs


Example

<script>
  import { Pass } from '@threlte/core'
  import { GlitchPass } from 'three/examples/jsm/postprocessing/GlitchPass'
</script>

<Pass pass={new GlitchPass()}>

Properties

// required
pass: THREE.Pass