Skip to content

Stencil camera angle makes the walls behind it invisible #111007

@linqiaozhi123

Description

@linqiaozhi123

Tested versions

4.5.stable,

System information

cpu:AMD9600X,gpu:Inter ARC B580,vulkan

Issue description

I'm making a portal, and I'm using a stencil to see through the walls in the portal view, but the portal shader has an opacity area that makes the walls behind it invisible to the player's view, and the bug only occurs when the portal is viewed from a certain angle. it seems to have something to do with the stencil, the camera angle, and so on.

Image

Steps to reproduce

wall:

Image portal(01.gdshader): Image

Minimal reproduction project (MRP)

One Portal.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions