Download

Absolute World Position in Post Processing Material

Hi,
I’m trying to use the absolute world position in a post processing material.
However when I run it with a procedural map made with landscape and foliage it seems the Z value is always 0.
The map is generated below Z = 0. I don’t know if that could be the problem or if it is something about the foliage or the procedural generation.
Any advise about it?

Thanks in advance,
Massimo

It’s a material node, and materials can’t represent values < 1.

I don’t know if the AWP node is actually giving negative Z, but the rest of the nodes can’t do much with it…

1 Like

Thanks! That was indeed true, I managed to solve it by saving in a byte the info about the sign of X Y and Z.

1 Like