Skip to content

Toggling renderer.shadow after initialisation breaks the render, same happens when setting scene.environment to null after it's been set initially #30074

@Samsy

Description

@Samsy

Description

Multiple cases breaks the render after it's been initially set :

Case 0 =>
renderer shadow was enabled, but then turned off later => blacks results

Case 1 =>
renderer shadow was off, but then turned on later => blacks results

Case 2 =>
environnement was enabled, then set to null later => black result

The live fiddle provide cases for each in the init function, to test =>

Change the CASE constant to either 0 / 1 / 2 and 3

Live example

Live fiddle link

Screenshots

No response

Version

171

Device

Desktop

Browser

Chrome

OS

MacOS

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions