A shader that gets transparent when lit
Hello,
I googled the whole web but didn't found a solution for my problem. Maybe someone can help me. I'm just learning shader code (and c# in general) but this is over the top for me. I need a shader that is opaque, has only one color texture and turn transparent on that area where it gets lit. Need this because the enemy should get transparent when lit by a flashlight. (like when i light on his foot, his foot should get transparent and the rest outside of the lightcone should be opaque. (fade transition)
Thank you in advance!
Your answer

Follow this Question
Related Questions
Writing a shader that emulates graphic novel coloring 0 Answers
hi in the scen wive lighting changes not visible and light properety shows me it how fix it ? 0 Answers
2D shader / lighting like Terraria or Starbound 2 Answers
how can I set Lightmap Scale per object 0 Answers
Particle System (Show particles more where the light is - Rain Falling for example) <- 0 Answers