Skip to content

Stencil: outline and x-ray presets do not work with transparency. #107806

Closed
@apples

Description

@apples

Tested versions

4.5.beta1

System information

Godot v4.5.beta (4e6ac9b) - Linux - all renderers - dedicated AMD Radeon RX 9070 XT (RADV GFX1201)

Issue description

When enabling transparency for objects using stencil outlines/x-rays, the stencil color bleeds through.

This is due to improper render_priority being set.

Image

(Image above provided by @patwork in the contributor chat.)

Image

Steps to reproduce

  1. Enable outline or x-ray stencil preset for an object.
  2. Make the object surface transparent (either with alpha in the albedo color, or with the transparency property on the node).
  3. Observe the outline color behind the surface.

Minimal reproduction project (MRP)

stencil-preset-priority-issue-repro.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions