File: module-SobelOperatorShader.md | Updated: 11/15/2025
SobelOperatorShader is an addon, and must be imported explicitly, see Installation#Addons.
import { SobelOperatorShader } from 'three/addons/shaders/SobelOperatorShader.js';
Sobel Edge Detection (see https://youtu.be/uihBwtPIBxM).
As mentioned in the video the Sobel operator expects a grayscale image as input.