Apply color to Immediate Geometry

yursan9yursan9 Posts: 6Member

I tried to use Immediate Geometry to make a static geometry (by using this tutorial). But, I can't apply color to it.

Reading the documentation, yield no result.
http://docs.godotengine.org/en/stable/classes/class_immediategeometry.html

Answers

  • MegalomaniakMegalomaniak Posts: 816Admin
    void set_color ( Color color )
    

    Set the color that the next vertex will use to be drawn.

    I'm guessing you didn't use it in the right order perhaps? Frankly though, depending on what you are actually trying to achieve there might be better way's of achieving it. I'd look into SurfaceTool and MeshDataTool for an example.

Sign In or Register to comment.