How to get the direction vector of light in blueprint
Hi guys, i wana use blueprint script to make a material like cartoon effect, i think i can use "vertexNormalWS" to dot a light direction vector to condition which color for the part of mesh. but the question is i don't known how to get the light direction vector in the blueprint, so anybody can give me some hints? Thanks!
asked Apr 04 '18 at 06:09 AM in Blueprint Scripting
so make two vector 3 variables, one where the light starts then one where it ends. Use find lookat rotation from those two vector3s, then get forward vector.
answered Apr 04 '18 at 07:55 AM
if you are still looking for the answer, using Forward vector of the light might do the trick
answered Jun 13 '18 at 05:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here