00:00
00:00
pinmoBOT
"Touch grass? Touch ass."
Professional 3D artist. I also like making drawings and playing desktop games. oUo

Eldritch Being

Texas

Joined on 9/12/22

Level:
5
Exp Points:
210 / 280
Exp Rank:
> 100,000
Vote Power:
4.23 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
0
Saves:
5
B/P Bonus:
0%
Whistle:
Normal
Medals:
3
Supporter:
11d

Adding Rim Lights to Bitgirl's Shader

Posted by pinmoBOT - 2 hours ago


Hey everyone! New update on shader stuff!

I added rim lighting to Bitgirl's shader to add some depth. I came across this method that only draws rim lights in lit areas of a mesh that involves calculating the dot product between the light input and the Fresnel effect. (Don't worry, it's easier than it sounds.) I wanted to break it down cuz I wanted to share this method with other 3D artists here on Newgrounds hoping to give ideas for stylized shading. Here's Bitgirl before and after adding rim lighting.

iu_1272869_11869577.webp

Visual Breakdown

Like I said before, you just take the specular lighting, convert it to rgb, calculate the dot product, step it to get a sharper edge, and add it to the color output. This way, the rim lighting is always dynamically drawn at the edge of the model in lit areas only. (It is drawn based on light direction and camera direction, so you'll always have an edge to create contrast.)

iu_1272867_11869577.webp

Here's the visual node setup for the shader in case anyone wants to recreate it. (I used ramps cuz its easier) I should disclose that the final look will greatly depend on shadow quality, so make sure your model isn't too small or that your shadow resolution isn't too low.

iu_1272868_11869577.webp


Tags:

Comments

Spoken as somebody who does not animate themselves, the first image only looks marginally better with the rim lighting. That being said, it might work out better when animated.
Regardless: An improvement 'was made' and you should feel good about yourself. :)