Skip to content

PCSS not working for SpotLight3D: Vulkan (Forward+) #80137

@kevancress

Description

@kevancress

Godot version

Godot v4.1.stable

System information

Godot v4.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (NVIDIA; 31.0.15.2824) - 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz (12 Threads)

Issue description

Percentage-closer soft shadows (PCSS) don't seem to be working correctly with SpotLight3d's.

Image below shows an Omni Light and Spot Light with the same light_size value. The Omni Light shows correct PCSS with the shadow getting softer the furth the object (caster) is from the surface (reciever). The Spot Light shows uniform shadow hardness.

image

Increasing the light_size Value for a Spot Light uniformly blurs the shadow, but the blur doesn't seem impacted by the casters distance from the receiver.

image

Steps to reproduce

  1. Create a 3D Scene
  2. Add a SpotLight3D
  3. Add a plane mesh instance, and a shadow caster mesh instance
  4. Enable shadows on the SpotLight3D
  5. Change the light_size to 0.1
  6. Observe
  7. Change SpotLight3D to OmniLight3D with the same light_size
  8. Observe

Minimal reproduction project

PCSS_Shadow_Issue.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions