Apply shadow in ShaderMaterial

I made a plugin to make it much easier and cleaner to extend native shader. Also those with custom vertex transformations (see templates). If you only do minor changes you can also use ’ onBeforeCompile’ the patchShader of this lib however will also give you the cleaner patching functionality.

If you want to properly access uniforms you might want your materials to be based on ShaderMaterial then.

4 Likes