From e08a29e73ea4f7e6d78e8e7f5a6e7033dbc1f542 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 30 Dec 2024 15:15:01 +0100 Subject: next commit --- extractor/gnd_format.gd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'extractor/gnd_format.gd') 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() -- cgit v1.2.3