added 3d card
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
uid://c2odugkbbppxn
|
||||
Binary file not shown.
@@ -0,0 +1,37 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://dxiv47be5dsll"
|
||||
path="res://.godot/imported/playing_card.glb-140e841cc7044d46be5ca25f58dcd6a3.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://cards/playing_card.glb"
|
||||
dest_files=["res://.godot/imported/playing_card.glb-140e841cc7044d46be5ca25f58dcd6a3.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
@@ -0,0 +1,30 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://b55xpcxk7g5ph"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c2odugkbbppxn" path="res://cards/playing_card.gd" id="1_t6o5d"]
|
||||
[ext_resource type="PackedScene" uid="uid://dxiv47be5dsll" path="res://cards/playing_card.glb" id="2_enav7"]
|
||||
[ext_resource type="Texture2D" uid="uid://i0wpcxpk7g2c" path="res://cards/textures/front_test.webp" id="3_jeoeb"]
|
||||
[ext_resource type="Texture2D" uid="uid://cih4y1hskimrs" path="res://cards/textures/back_test.webp" id="4_exvuq"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nwj5s"]
|
||||
resource_local_to_scene = true
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_hel13"]
|
||||
albedo_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auvip"]
|
||||
albedo_texture = ExtResource("4_exvuq")
|
||||
|
||||
[node name="PlayingCard" type="StaticBody3D" node_paths=PackedStringArray("card_mesh")]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
script = ExtResource("1_t6o5d")
|
||||
card_mesh = NodePath("PlayingCard/Cube")
|
||||
front_texture = ExtResource("3_jeoeb")
|
||||
|
||||
[node name="PlayingCard" parent="." instance=ExtResource("2_enav7")]
|
||||
|
||||
[node name="Cube" parent="PlayingCard" index="0"]
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_nwj5s")
|
||||
surface_material_override/1 = SubResource("StandardMaterial3D_hel13")
|
||||
surface_material_override/2 = SubResource("StandardMaterial3D_auvip")
|
||||
|
||||
[editable path="PlayingCard"]
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cih4y1hskimrs"
|
||||
path.s3tc="res://.godot/imported/back_test.webp-f0536195b066a620ab334e50205f1339.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://cards/textures/back_test.webp"
|
||||
dest_files=["res://.godot/imported/back_test.webp-f0536195b066a620ab334e50205f1339.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://i0wpcxpk7g2c"
|
||||
path.s3tc="res://.godot/imported/front_test.webp-a2de17f4a63d651cf42c323e0081216f.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://cards/textures/front_test.webp"
|
||||
dest_files=["res://.godot/imported/front_test.webp-a2de17f4a63d651cf42c323e0081216f.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
Reference in New Issue
Block a user