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 { BloomPmndrs, EffectComposerPmndrs } from '@tresjs/post-processing'

import { BlendFunction } from 'postprocessing'
</script>

<template>
  <EffectComposerPmndrs>
    <NoisePmndrs
      premultiply
      :blend-function="BlendFunction.SCREEN"
    />
  </EffectComposerPmndrs>
</template>

Props

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

Further Reading

see postprocessing docs