Shader Texture appear in light

Hello everybody !

I absolutely can’t write shaders scripts, i don’t know anything about it… So i call your help !
If someone could tell me how to do a shader, which will have the same effect like the Lightmapping, but instead of a main texture you have a full transparent texture. I mean a shader that will make a cube (for example) completely invisible but when you have some light on it it will render another texture. I think it’s a bit confuse, but can someone help ? :smile:

Thanks

Check out this thread.

Oki thx for this, but it doesn’t work i get bad lightning, like that :

I think there are other ways to get what i want so i say it : I want to do that when an invisible object like a box or a plane comes in a trigger like a sphere, the part of it in the sphere become visible.
It’s exactly like the Mysterious circles in Mario Galaxy or the light Yoshi in Super Mario Galaxy 2.

Can someone help me ?

Try to set the light to important.