Skip to content

There is a bizarre issue with WebGPU lighting. #31062

Closed
@jellychen

Description

@jellychen

Description

Sometimes we inherit from Three.js's light classes to create a subclass with additional custom functions. This works fine in WebGL, but causes issues in the WebGPU renderer.

WebGPU relies on the class's constructor to locate the lightNode, and when we create a new subclass via inheritance, this process breaks.

Is this considered a bug?

Reproduction steps

empty

Code

empty

Live example

empty

Screenshots

No response

Version

175

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions