Modifying ShaderMaterial to bind lights

Using a shader material with lights is complicated and not really supported. If possible, you should create a node material instead.

If you still want to go that route, this post may help:

1 Like