Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Bug: glowing env_sprite is improperly occluded by refractive materials

Open Wheattttt opened this issue 1 year ago • 1 comments

Describe the bug

env_sprite entities set to Glow or World Space Glow have unique functionality for occlusion that is different than other rendering modes. However, this functionality improperly occludes the sprite when it goes behind a refractive glass material.

EXAMPLE:

https://github.com/StrataSource/Engine/assets/33504404/9ca29540-5cfc-40dd-8b6d-d038b3cd953d

As seen here, this also affects the sprite component of point_spotlight entities, while the beam itself remains functional. This does not appear to be a rendering limitation of any kind, but rather just an improper occlusion of the sprite's visibility, as if you clip your camera half-way through the glass, you can get the sprite to still render through parts of the glass.

EXAMPLE:

https://github.com/StrataSource/Engine/assets/33504404/7b4dcce8-0d29-4b9f-9f37-0f5cc451efc9

To Reproduce

  1. Open map
  2. Observe the occlusion issue

Issue Map

spritevisibilitybugmap.zip

Expected Behavior

env_sprite entities should only be occluded by solid shaders, and should render through refraction.

Operating System

Win 11

Wheattttt avatar Mar 28 '24 23:03 Wheattttt

Updated, as it appears to happen with the Refract shader in general rather than just on models.

Wheattttt avatar Mar 31 '24 10:03 Wheattttt