Nadvgia
(Nadvgia)
1
Good morning.
I have a material that displays a heat effect, which is deployed in a postprocess volume inside my level (it also has infinite extent).
But i need to only see it at a distance, like 500 meter away from the camera of my character for example.
What nodes i may add for that purpose?
Thank you.
LogierJan
(LogierJan)
2
You could these nodes:
-
ActorPosition will give you the actor position in world space.
-
WorldPosition will give you the world location for every pixel.
-
CameraPosition will give you the world position of the camera.
Then simply take the distance between 2 of them.
Nadvgia
(Nadvgia)
3
Thank you for you reply.
It gives me an error. How should they work together?
LogierJan
(LogierJan)
4
You’d want to use an If node.
Nadvgia
(Nadvgia)
5
Thank you very much, it works like a charm