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
Prop | Description | Default |
---|---|---|
blendFunction | The blend function of this effect. This prop is not reactive. | BlendFunction.SCREEN |
premultiply | Indicates whether noise will be multiplied with the input colors prior to blending | false |