This time, we have a smaller sample. This sample shows the implementation of a “rim lighting” shader, customizable by a series of parameters.
I observed this kind of effect in Super Mario Galaxy screenshots, and it looked like a nice effect, that could easily amplify the cuteness and eye-candy of a game. So here’s my implementation.
The looks of the effect may be customize by 4 parameter, Rim_Start, Rim_End, Rim_Multiply and Rim_Color. The source includes a small table with some experiments I did that yielded interesting results.
In the downloadable archive you will find a custom content processor for a Model, which changes the model’s effect to RimLight.fx, and copied the texture over to the new effect.
While running the sample, use [Space] or Gamepad [A] to switch between the dino model and a group of three colorful objects. Look at the source code, in the Draw function for some customization options.
You can download the source code here: rimlighttest.zip
Pingback: Catalin Zima - XNA and HLSL blog » July Sample: Rim Lighting
Pingback: More Velvetty GLSL « machines don’t care
Pingback: In arrivo l'espansione Gothic 3 "Forsaken Gods" - News, Commenti e Pareri! - Page 19 - Videogiochi Forum su Multiplayer.it