Skip to content

Bug: Cascade lighting does not light static props. #1578

@Laveig

Description

@Laveig

Describe the bug

Static props don't get lit when using cascade shadow mapping. The map does not matter., it happens everywhere. The only fix is to use -StaticPropLightingOld.
My guess is that the new compiler does not compile ambient map / shadow map for static props, so they get ignored by engine in-game. As proof, I will cite the fact that it takes longer to compile with -StaticPropLightingOld.

To Reproduce

  1. Place light_environment with the following settings: _light 255 255 255 200 _ambient 255 255 255 20, angles -72 295 63, pitch -72
  2. Place env_cascade_light with the following setting: color 255 255 255 1
  3. Place any prop (prop_physics_override, prop_static, prop_dynamic)
  4. The prop will not receive CSM lighting.

Example Map

The map - https://drive.google.com/file/d/1Ig5LIzG-cqVS-oRi0leRDgeivQs3Kh92/view?usp=sharing
VMF - https://drive.google.com/file/d/1KHYm76Y-_NkdEWN9Uu0unTMyQ3zOkIwO/view?usp=sharing

Expected Behavior

The props should be lit up no matter the command line. If this is some sort of optimisation, then this is bad.

Operating System

Windows 11 24H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugThis is a problem with something that should be working one way, but isn't.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions