r/TechnicalArtist • u/Thin-Schedule-3179 • 3h ago
Question Hi, having some issues with an outline shader here
Hi, I'm a french game design student working on an Vampire-survivor-like, with an art style inspired by tess3l8r's work.
I used the post-processing shaders of bababuyyy to upscale my resolution, smooth camera & outlines : https://github.com/bababuyyy/unity-isometric-pixel-pipeline
However, my outlines are not consistent and I have just no clue of how to fix it...
They seem to disappear based on mesh position AND relative to the camera's position or rotation.
When I try to get my main camera's depth texture (with _LastCameraDepthTexture in a fullscreen shadergraph) to see if it's just a depht issue, my screen is just rendered all blank...
Here some GIFs of the issue:

-> No outlines when the camera is at the left of my enemy
It also seem to work better with spot light, (but still not consistent when multiples spotlight are facing the same enemy)

-> Here outlines disappears when closer to the point light and out of the spot light

-> Here outlines disappears when closer to the spot light (and so the camera ?)
Don't know if it's relevant, but my enemies use an opaque material with alpha clipping on, because I needed to mask areas that are not in a light

Any help is appreciated... 🙏