Material changing with camera position

Hi here is a question related to Material in Armory.
How can I create a material that will for example move along with the camera?

In Blender you can set formulas in the Mapping node,
that will take as input the

How can we achieve this in Armory?


you may use the shader data node in the material that needs the camera data.

Here is the list of all the data you can get from this node:

To get the camera location, please use _cameraPosition in the node, set it to uniform and vec3.


Wow great, I will give it a try. Thanks

1 Like