Skip to content

Bug: CSM lit VertexLitGeneric props without phong are lit weirdly #1899

Open

Description

@lenship2

Describe the bug

The title sounds rather specific but this issue is very widespread due to how much VertexLitGeneric is used, and could make CSM effectively unusable for a lot of people.

If a dynamic/physics prop uses VertexLitGeneric without using phong parameters, CSM won't properly light the object. This results in 'weird' lighting, where the lit areas appear unlit and the shadowed areas have artifacts from lighting. It almost looks as if normals are inverted

Image

To Reproduce

  1. Open any map using CSM
  2. ent_create_portal_reflector_dirty_cube
  3. Observe the lighting

Issue Map

csmbug.zip

Expected Behavior

VLG should appear properly lit under csm, regardless of phong being enabled

Operating System

No response

Activity

  1. added
    Type: Bug
    What: Graphics
    Priority 2: High
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Includes Map!Priority 2: HighType: BugWhat: Graphics

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions