Skip to content

Compatibility: Cull Mask on DirectionalLight3D doesn't work #103595

@ArtyIF

Description

@ArtyIF

Tested versions

  • Tested on v4.4.stable.official [4c311cb]

System information

Godot v4.4.stable - Arch Linux #1 ZEN SMP PREEMPT_DYNAMIC Thu, 27 Feb 2025 18:09:27 +0000 on Wayland - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - AMD Radeon RX 570 Series (radeonsi, polaris10, LLVM 19.1.7, DRM 3.61, 6.13.5-zen1-1-zen) - AMD Ryzen 5 2600 Six-Core Processor (12 threads)

Issue description

When using the Compatibility renderer, the Cull Mask property is ignored on DirectionalLight3Ds, but not other Light3Ds.

The screenshots are from the MRP. The left cube is on layer 1, while the right cube is on layer 2. The red lights only affect layer 1, while the green lights only affect layer 2.

Forward+:

Image

Compatibility:

Image

Steps to reproduce

  1. Open the MRP
  2. The directional lights will ignore the cull masks, making their combined light yellow. The omni lights will not, so the cubes' tops will be lit by them separately
  3. Switch the renderer to Forward+
  4. The directional lights will take the cull masks into account, so the cubes will be lit as intended

Minimal reproduction project (MRP)

glcullmaskmrp_2025-03-04_22-50-06.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions