📄 threejs/Addons/Shaders/module-SobelOperatorShader

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


title: module-SobelOperatorShader category: Unknown layout: docs

SobelOperatorShader

Import

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

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

Properties

.SobelOperatorShader : ShaderMaterial~Shader (inner, constant)

Sobel Edge Detection (see https://youtu.be/uihBwtPIBxM).

As mentioned in the video the Sobel operator expects a grayscale image as input.

Source

examples/jsm/shaders/SobelOperatorShader.js