📄 threejs/Addons/Shaders/module-MirrorShader

File: module-MirrorShader.md | Updated: 11/15/2025


title: module-MirrorShader category: Unknown layout: docs

MirrorShader

Import

MirrorShader is an addon, and must be imported explicitly, see Installation#Addons.

import { MirrorShader } from 'three/addons/shaders/MirrorShader.js';

Properties

.MirrorShader : ShaderMaterial~Shader (inner, constant)

Copies half the input to the other half.

side: side of input to mirror (0 = left, 1 = right, 2 = top, 3 = bottom).

Source

examples/jsm/shaders/MirrorShader.js