Skip to content

hologramEffect

Holographic projection effect with animated scanlines and flicker, fully written in TSL.

Usage

ts
import { createHologramMaterial } from '@threeuse/effects'
import { BoxGeometry, Mesh } from 'three'

const material = createHologramMaterial({
  color: [0, 1, 0.8],
  scanlineSpeed: 2,
  flickerSpeed: 5,
})

const mesh = new Mesh(new BoxGeometry(), material)
app.scene.add(mesh)

Parameters

ParamTypeDefaultDescription
color[r,g,b][0,1,0.8]Hologram color
scanlineSpeednumber2Scanline scroll speed
flickerSpeednumber5Flicker frequency

Demo

Released under the MIT License.