Example of ShaderMaterial with Shadowmap Support

This is a feature-request for a ShaderMaterial with Shadow Support in Three.js, which would make it more user-friendly to add custom shaders with support for rendering shadows.

I have found the following code to create a ShaderMaterial that only renders shadow, however it only works with Three.js r71: https://gist.github.com/ayamflow/93aba91065c2b9750f4f

An example for Three.js with a custom ShaderMaterial with shadowmap support would also be useful.

Author: Fantashit

2 thoughts on “Example of ShaderMaterial with Shadowmap Support

Comments are closed.