Jump to content
  • entries
    4
  • comments
    57
  • views
    13,867

Chasing RIM light/reflections


shadmar

3,755 views

 Share

My first blog entry yaay smile.png

Testing some shaders I did for an another direct3d engine a while back.

 

Rim lights or reflection are kind of cool because in real life when you look at a shiny car the reflections gets more intense the lower angle of attack you look at the surface.

 

So this is an attamept to mimic this, but you can also use it to background light your meshes.

 

To control amount of rim light I use some fresnel settings like this in the shader:

 

float Fresnel_Start = -0.1; //rim start lowest angle
float Fresnel_End = 0.70; //rim end widest angle
float Fresnel_Multiplier = 2.0;
vec4 Fresnel_Color = vec4(1,1,1,1);
float Fresnel_Cubemix = 0.15;

 

I didn't have a suitable sportscar to demonstrate it properly but a statue and a sphere will do just fine.

 

Rim Reflections using cubemap

 

LE_rim3.jpg

 

 

Red rim-light (no reflections)

 

LE_rim.jpg

 

Pure rim light no ambient or other light sources

 

LE_rim2.jpg

  • Upvote 4
 Share

8 Comments


Recommended Comments

They look amazing. If you had an fps gun with scope you would definitely want the first one as its shader!

 

I have no idea when it comes to shaders and I'm going to need to learn. Where does one start?

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...