I’d like to add a Rim Lighting effect to my game’s characters in order to improve visibility, similar to this: $rimlight - Valve Developer Community
The reason this is important is because my characters are solid Black and blend in very well to darker areas, especially since my game has a higher contrast than normal.
I’ve already tried highlights, but thought they weren’t subtle enough (they also look worse from further away because the thickness will always be a certain size relative to the screen).
I’ve also looked at a Forcefield overlay (duplicating the mesh and making it forcefield), but this didn’t work out very well. One, it overlapped the inside of the mesh making it appear brighter everywhere, not just the rim, and two, it didn’t conform very well to my mesh because of the shape of the geometry.
For the forcefield solution, I imagine inverting the normals could work, but this still doesn’t solve the issue where it doesn’t conform well.
Here is an example of the forcefield not conforming well (the white is where the forcefield would’ve been, and the black is the normal mesh popping through)
Any help?


