Skip to content

Setting hardcoded vec values to a fogNode does not work, also Fn TSL does not work  #30077

@Samsy

Description

@Samsy

Description

Using Fn, as the examples in the wiki many times does not work for fogNode, but also, setting direct output like a vec to a fogNode does not work as well

Tested only the case of scene.fogNode, and not aware if the same issue is reproduced using other nodes from the scene.

Example here of setting a fogNode

1st case =>

setting the fogNode to a direct variable = vec3(1.0, 1.0, 1.0) => not working

2nd case =>

Using Fn to return a hardcoded rangeFog => not working

3rd case =>

Using inline to return a hardcode rangeFog => working

Reproduction steps

Visit the fiddle, and change the CASE variable from 0 to 2

Live example

Live fiddle

Screenshots

working case number 2 :

Screenshot 2024-12-09 at 16 32 38

Version

171

Device

Desktop

Browser

Chrome

OS

Windows, MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions