Character customization fixes

This commit is contained in:
Segey Lapin
2019-08-22 23:56:07 +03:00
parent 22cce1ca30
commit e65a9f9dbf
7 changed files with 259 additions and 169 deletions

View File

@@ -1,4 +1,5 @@
extends ColorRect
signal drawing_finished
const TEX_SIZE = 512
var triangles : Array = []
@@ -24,3 +25,6 @@ func _draw():
colors.push_back(Color(k.shape.x, k.shape.y, k.shape.z, 1))
uvs.push_back(k.uv * TEX_SIZE)
draw_polygon(PoolVector2Array(uvs), PoolColorArray(colors))
yield(get_tree(), "idle_frame")
yield(get_tree(), "idle_frame")
emit_signal("drawing_finished")