jocamar / Godot-Post-Process-Outlines

A set of shaders and a custom camera node to easily integrate post process outlines into your game. Works with both 2D and 3D games.
MIT License
144 stars 8 forks source link

Silhouette Outlines? #1

Open sairam4123 opened 3 years ago

sairam4123 commented 3 years ago

Is it possible to have Silhouette Outlines? How can you do it?

If not do you plan to add it, somehow?

jocamar commented 3 years ago

Do you mean not having outlines "inside" the objects? If so there are several ways to achieve that, some require more work than others.

One is trying to use just the depth based outlines and seeing if this gets your desired effect, the other requires creating a separate render target using viewports. In this target you'll need to render each object you want outlined using a different flat color with no shading, and then use the outlines camera/shader with the depth outlines disabled, the use_background_tex option to true and a transparent texture as the background. This will render an image with just the outlines to the texture in that viewport, which you can then access from your "main" scene and overlay it on top.

sairam4123 commented 3 years ago

Depth based outline isn't working for me and the second method you said is bit difficult.