Hello,
I am currently recreating a foliage shader from Unity into Godot. However I need the Transform-Matrix of the Object on which the shader is applied on.
Is there any way to access it or do I have to create a Uniform and apply it from the object onto the shader via script?

Thanks for the help.
Best Regards

Fab

  • It can be accessed in a shader as WORLD_MATRIX.
    (MODEL_MATRIX in 4.0)

It can be accessed in a shader as WORLD_MATRIX.
(MODEL_MATRIX in 4.0)