Back to library
Preview of THREE-CustomShaderMaterial
GitHub

Shaders, WebGL & Creative Coding · R3F ecosystem

THREE-CustomShaderMaterial

Extends Three.js built-in materials with your own vertex and fragment shaders while keeping lighting, shadows and depth passes intact.

Why it’s a gem

Solves the hardest r3f problem: custom shaders that still receive real lighting and shadows.

Visit github.com
Type
GitHub repository
License
MIT
Added
Aug 17, 2026

More from R3F ecosystem