material-maker/demo/object.tscn

50 lines
1.3 KiB
Plaintext

[gd_scene load_steps=6 format=2]
[ext_resource path="res://material_maker/examples/skulls.ptex" type="Material" id=1]
[sub_resource type="SphereMesh" id=1]
[sub_resource type="SpatialMaterial" id=2]
flags_unshaded = true
flags_do_not_receive_shadows = true
[sub_resource type="SphereMesh" id=3]
material = SubResource( 2 )
radius = 0.1
height = 0.2
[sub_resource type="Animation" id=4]
length = 5.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("LightPivot:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 360, 0, 0 ) ]
}
[node name="MeshInstance" type="MeshInstance"]
mesh = SubResource( 1 )
material/0 = ExtResource( 1 )
[node name="LightPivot" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 0.929776, -0.368125, 0, 0.368125, 0.929776, 0, 0, 0 )
[node name="OmniLight" type="OmniLight" parent="LightPivot"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0746527, 1.74306, 0 )
[node name="MeshInstance" type="MeshInstance" parent="LightPivot/OmniLight"]
cast_shadow = 0
mesh = SubResource( 3 )
material/0 = null
[node name="LightRotate" type="AnimationPlayer" parent="."]
autoplay = "rotate"
anims/rotate = SubResource( 4 )