diff options
Diffstat (limited to 'extractor/gnd_format.gd')
-rw-r--r-- | extractor/gnd_format.gd | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/extractor/gnd_format.gd b/extractor/gnd_format.gd index f13956e..ea8d965 100644 --- a/extractor/gnd_format.gd +++ b/extractor/gnd_format.gd @@ -211,7 +211,7 @@ class Surface: var vertex_color_alpha: int - func get_uvs() -> Dictionary: # Dictionary[Vector2, Vector2] + func get_uvs() -> Dictionary[Vector2, Vector2]: return { Vector2(0, 0): Vector2(u_top_left, v_top_left), Vector2(1, 0): Vector2(u_top_right, v_top_right), @@ -220,6 +220,15 @@ class Surface: } + func get_vertex_color() -> Color: + return Color8( + vertex_color_red, + vertex_color_green, + vertex_color_blue, + vertex_color_alpha + ) + + static func from_bytes(bytes: ByteStream) -> Surface: var surface = Surface.new() |