Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: Not Selected
more ▼

asked Mar 28 '14 at 01:04 AM in Using UE4

avatar image

6 2 3 3

avatar image Kenmini Nov 28 '17 at 07:25 AM

I am a fan of Dota2. You want to add rim light effects to the material, you can learn the functions here. Hope to be useful to you.

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

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?

more ▼

answered Mar 28 '14 at 01:10 AM

avatar image

16.7k 671 167 674

(comments are locked)
10|2000 characters needed characters left

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.

more ▼

answered Mar 28 '14 at 01:11 AM

avatar image

Jordan Walker STAFF
66 2 2 1

(comments are locked)
10|2000 characters needed characters left

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. :)alt text

here's what it's looking like at the moment and here's a link to what i'm trying to achieve.


fresnel.jpg (152.3 kB)
more ▼

answered Mar 28 '14 at 01:25 AM

avatar image

6 2 3 3

avatar image Jacky Mar 28 '14 at 01:38 AM

Sorry, should have been more clear on Lerp. :)

Press and hold L then click on the canvas and you'll get Lerp(Linear Interpolation) node. Plug fresnel(or your mask texture) to Alpha and adjust the values inside the Lerp node(or connect whatever you want to mask and interpolate to A and B inputs)

Looking at the pdf, i think you won't need fresnel for this. There is a glowy part on your hammer it seems, so you'll need a mask(Self-Illumination texture as it says there) for that part and use it for the Alpha of the Lerp, then connect it to Emissive.

avatar image nathanimator Mar 28 '14 at 02:54 AM

Thanks! I think I've finally got my brain wrapped around it now. :)

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question