# Threejs Custom Shader Injection from ShaderToy

> One of the things I love the most in is the onBeforeCompile method. You can extend default materials keeping their properties. I created this glass…

Canonical page: https://andersonmancini.dev/videos/threejs-custom-shader-injection-from-shadertoy

Published: 2023-07-15 · Duration: 2:13 · Category: Tutorials · Tags: three.js, shaders, tutorial, source-code, shader, custom-shader, shader-injection, shadertoy

Watch: [YouTube](https://www.youtube.com/watch?v=J15LKqsEx0Y) · [Subscribe to the channel](https://www.youtube.com/@AndersonMancini?sub_confirmation=1)

One of the things I love the most in is the onBeforeCompile method. You can extend default materials keeping their properties. I created this glass iridescent material with shader injection from @Shadertoy. The tutorial will publish soon + source code
