Trying to make an ultraviolet lamp-like material

Trying to make a material, where lit part is rendering normally, and unlit part looks transparent.

Just like an ultraviolet lamp, the character is holding a special colored spotlight (means a flashlight) and there’s some clue on model that could only lit by this light.

So my problem is, how to get the lighting info in material system? Or I have to modify the shading model? Or is there some other ways to get what I desired?

maybe you should try something simpler. like a decal , using a mask and vector math to reveal it. theres an exemple in the math hall that change a material color function on POV . so with a mask and a bit of math you could do this on a decal i think.

Thanks a lot, have implement it with sphere mask + decal material :wink: