Procedural texture for FixedMaterial?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sébastien Prud’homme
:warning: Old Version Published before Godot 3 was released.

Hi everyone,

I’m learning Godot and i’m trying to code this Tree.js procedural city.

I’ve managed to reproduce the procedural texture in a CanvasItem (Node2D), the only class in Godot which seem to have advanced draw fonctions.

Now i’d like to use that CanvasItem to build a Texture for a FixedMaterial but i see no way to do it.

I’m not sure i’m in the right direction. Any advice welcome.

Thanks