How can I achieve spot light effect in my own shader?

This is not that easy as you need to account for everything a spotlight would do from your own shader. It is like asking I want the full PBR or standard in my own shader which therefore would require the full implementation :slight_smile:

That said, you could either use custom materials to extend standard/pbr materials.

Or I would recommend to use our Node Material Editor which contains light nodes to fit with your scene.

2 Likes