0
$\begingroup$

Is there a way to make a material that only shows one material initially, but when light strikes it (a spotlight, for example) it would change material only where it strikes it?Something like this (I made this in Photoshop)

Something like this (I made this in Photoshop)

$\endgroup$
1
  • $\begingroup$ Can you dio this with a Principled Volume node somehow? $\endgroup$ Commented Dec 10, 2022 at 8:48

1 Answer 1

1
$\begingroup$

You can do this in Eevee with the Shader to RGB node, the value of which can tell you how much light has hit the material. The following node setup produces something similar to the picture you gave: setup

result: result

If you are trying to do this in Cycles, that is somewhat more difficult, as the shader to rgb node is only available in Eevee. If you want to switch between two fully separate materials instead of just two colors, you can plug the output of the shader to rgb into the factor of a mix shader.

$\endgroup$
1
  • $\begingroup$ It sort of works. One, I need it to work in cycles. Two, when I combine two textures made from images (i.e. Megascans textures or polligon textures) I get a pink texture. $\endgroup$ Commented Apr 21, 2022 at 17:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .