Apply fog only to cetrain nodes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kovalski
:warning: Old Version Published before Godot 3 was released.

is it possible to apply fog only to cetrain nodes? can it be done without using shaders?

:bust_in_silhouette: Reply From: Zylann

That sounds possible with a fragment shader, though you will need to turn off the default fog and compute the custom fog yourself then.
A simple way (but not the best) is to get the depth of the pixel being rendered and shade it more or less depending on its value.

Without shaders? I don’t see an option for that. What are your trying to do? Are these nodes actually in the game world?

Thank you! I will try make it in this way.

Yes. These nodes are located in the game world.

Kovalski | 2017-02-28 23:54