Skip to content

Noise

Noise is an effect that adds Gaussian noise to the scene. This can be used to simulate a variety of effects, such as static on a TV or film grain.

Usage

vue
<script setup lang="ts">
import { BlendFunction } from 'postprocessing'

import { EffectComposer, Bloom } from '@tresjs/post-processing'
</script>

<template>
  <EffectComposer>
    <Noise
      premultiply
      :blend-function="BlendFunction.SCREEN"
    />
  </EffectComposer>
</template>

Props

PropDescriptionDefault
blendFunctionThe blend function of this effect. This prop is not reactive.BlendFunction.SCREEN
premultiplyIndicates whether noise will be multiplied with the input colors prior to blendingfalse

Further Reading

see postprocessing docs