Skip to content

OpenGL: Directional shadow rendering works in the editor, but not in the running project #82503

@Calinou

Description

@Calinou

Godot version

4.2.dev fbe611e

System information

Fedora 38, GeForce RTX 4090 (NVIDIA 535.104.05)

Issue description

Following the implementation of 3D shadows, I've noticed that directional shadows fail to render in the running project, even though they work in the editor:

Screenshot_20230928_235923

Decreasing Max Distance shows that the shadow map is pure black:

Screenshot_20230929_000138

In the editor:

Screenshot_20230928_235934

Steps to reproduce

  • Add some meshes in a scene.
  • Add a DirectionalLight3D node and enable shadows on it.

Minimal reproduction project

test_shadow_compatibility.zip

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions