Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Samsy opened this issue Dec 9, 2024 · 0 comments · Fixed by #30080
Closed

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

Samsy opened this issue Dec 9, 2024 · 0 comments · Fixed by #30080
Milestone

Comments

@Samsy
Copy link
Contributor

Samsy commented Dec 9, 2024

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

@Samsy Samsy changed the title Setting hardcoded vec values to a node does not work, also Fn TSL does not work Setting hardcoded vec values to a fogNode does not work, also Fn TSL does not work Dec 9, 2024
@sunag sunag mentioned this issue Dec 9, 2024
2 tasks
@sunag sunag added this to the r172 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants