Skip to content

Pixelation

Pixelation is an effect that pixelates the scene.

Usage

vue
<script setup lang="ts">
import { EffectComposer, Pixelation } from '@tresjs/post-processing/three'
</script>

<template>
  <EffectComposer>
    <Pixelation />
  </EffectComposer>
</template>

Props

PropDescriptionDefault
pixelSizeThe size of the pixels. Larger values result in a more pixelated appearance.30
depthEdgeStrengthThe strength of the depth edges.1.0
normalEdgeStrengthThe strength of the normal edges.0.5

Further Reading

see Three.js example