added 3d card

This commit is contained in:
2025-07-08 11:32:52 +02:00
parent 08773d963c
commit 4fec323639
10 changed files with 175 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
class_name PlayingCard
extends StaticBody3D
@export var card_mesh: MeshInstance3D
@export var front_texture: Texture
var card_details: Card
func _ready() -> void:
set_front_texture(front_texture)
func set_front_texture(texture: Texture) -> void:
card_mesh.get_surface_override_material(0).albedo_texture = front_texture