Is it possible to add a rim lighting effect to a material?
Most of my game engine experience has been making dota 2 items and in that you're able to use a texture to determine the brightness of a rim light effect on parts of your texture. Is there any way to get a rim light effect in an ue4 material?
asked Mar 28 '14 at 01:04 AM in Using UE4
I think it is doable if you Lerp 2 values with a fresnel node(and set it's values so that the glow appears only on the edges) for emissive.
Hmm, i read your post again and this works for the whole mesh. But then, you can use your texture to mask instead of fresnel to Lerp between two values.
Can you post a picture of what you are after if none of these work please?
answered Mar 28 '14 at 01:10 AM
Yep, just throw in a fresnel node, and multiply that by a color and plug it either into your BaseColor or your Emissive. If it's in base color it cant be very bright but will be affected by lighting. If it's in emissive it can be bright but wont be affected by light.
You can also plug the pixel normal node into the normal of the fresnel to have it react to your normal map.
answered Mar 28 '14 at 01:11 AM
Jordan Walker STAFF
Thanks for the quick reply, this definitely seems to be heading the direction I was looking for. Right now I'm just having trouble pushing the fresnel effect out of the center which I'm assuming would be controlled by the lerp values or multiplying by the color as you guys mentioned but I'm unsure how to do either of those things. :)
here's what it's looking like at the moment and here's a link to what i'm trying to achieve.
answered Mar 28 '14 at 01:25 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here