Skip to content

backgroundNode color renders in the shadow map  #30111

@Samsy

Description

@Samsy

Description

When using :

scene.backgroundNode = new THREE.Color(0xff0000)

The background color renders in the shadow map

but also :

scene.background = new THREE.Color(0xff0000) does same effects

EDIT :

For some reasons, the backgroundNode allows THREE.Color as input, realised it is not a problem using color( 0xff000 ) from TSL color

Screenshot 2024-12-12 at 15 19 45

Live example

This fiddle display the shadow map texture in the center plane

Live fiddle

Version

r171

Device

Desktop

Browser

Chrome

OS

MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions