Further refactoring for MultiMeshInstance drawing
parent
56ae5869e8
commit
469391c7ed
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=6 format=2]
|
[gd_scene load_steps=7 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://scenes/HexTile3D.cs" type="Script" id=1]
|
[ext_resource path="res://scenes/HexTile3D.cs" type="Script" id=1]
|
||||||
[ext_resource path="res://materials/HexTileTextureLookup.tres" type="Material" id=2]
|
[ext_resource path="res://materials/HexTileTextureLookup.tres" type="Material" id=2]
|
||||||
|
@ -8,10 +8,19 @@
|
||||||
height = 1.0
|
height = 1.0
|
||||||
radius = 0.5
|
radius = 0.5
|
||||||
|
|
||||||
|
[sub_resource type="CylinderMesh" id=7]
|
||||||
|
material = ExtResource( 2 )
|
||||||
|
top_radius = 0.5
|
||||||
|
bottom_radius = 0.5
|
||||||
|
height = 10.0
|
||||||
|
radial_segments = 6
|
||||||
|
rings = 1
|
||||||
|
|
||||||
[sub_resource type="MultiMesh" id=6]
|
[sub_resource type="MultiMesh" id=6]
|
||||||
transform_format = 1
|
transform_format = 1
|
||||||
instance_count = 1
|
instance_count = 1
|
||||||
mesh = ExtResource( 3 )
|
visible_instance_count = 1
|
||||||
|
mesh = SubResource( 7 )
|
||||||
transform_array = PoolVector3Array( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
transform_array = PoolVector3Array( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
||||||
|
|
||||||
[node name="HexTile3D" type="Spatial"]
|
[node name="HexTile3D" type="Spatial"]
|
||||||
|
@ -32,4 +41,5 @@ shape = SubResource( 5 )
|
||||||
|
|
||||||
[node name="MultiMeshInstance" type="MultiMeshInstance" parent="."]
|
[node name="MultiMeshInstance" type="MultiMeshInstance" parent="."]
|
||||||
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, -5, 0 )
|
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, -5, 0 )
|
||||||
|
visible = false
|
||||||
multimesh = SubResource( 6 )
|
multimesh = SubResource( 6 )
|
||||||
|
|
Loading…
Reference in New Issue