Skip to content

Overriding fogNode breaks scene from inline to Fn #30104

@Samsy

Description

@Samsy

Description

Overriding the fogNode breaks the render

On a scene using an inline fogNode :

const rangeF = rangeFogFactor(0.0, 100.0 );

scene.fogNode = fog( color(0xff0000),  rangeF);

Overriding with a TSL Fn break the engine build :


scene.fogNode = Fn(()=>{

      return fog( color(0xff0000),  rangeF);
})

Live example

This live fiddle uses the latest DEV build targeted in my own fork, since the current repo builds are not updated

Live fiddle link

Version

dev build last

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