Outline shader covers the entire scene

I want to use this shader for my character to make an outline around the character.

I created a separate scene for the character and added a regular material to its MeshInstance3D, and then added the shader material in the next pass:

CharacterBody3D

|- CollisionShape3D

|- MeshInstance3D (Character model)

|- NavigationAgent3D

The problem is that all the objects in the same scene as the character are covered by this contour even though they do not have this shader material. For some reason, the shader also disappears in the peripheral areas of the camera in the game and in the editor (second screenshot)


The shader is a screen space effect, it will apply to everything. Could you make an outline without a shader for just the object you want?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.