36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://idxtvhvxccgl"]
|
|
|
|
[ext_resource type="ArrayMesh" uid="uid://c7i8bpqtest8q" path="res://assets/models/bottle.obj" id="1_pj6wy"]
|
|
[ext_resource type="Shader" path="res://shaders/pbr_glass.gdshader" id="2_nc55p"]
|
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_rff84"]
|
|
rough = true
|
|
bounce = 0.1
|
|
absorbent = true
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_dus7y"]
|
|
render_priority = 0
|
|
shader = ExtResource("2_nc55p")
|
|
shader_parameter/albedo = Color(0.2, 0.0470588, 0, 0.631373)
|
|
shader_parameter/roughness = 0.15
|
|
shader_parameter/normal_strength = 1.0
|
|
shader_parameter/edge_color = Color(0, 0, 0, 1)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_bsmvc"]
|
|
size = Vector3(0.15, 0.5, 0.15)
|
|
|
|
[node name="Cube" type="RigidBody3D" groups=["pushables"]]
|
|
collision_priority = 2.0
|
|
mass = 1.5
|
|
physics_material_override = SubResource("PhysicsMaterial_rff84")
|
|
continuous_cd = true
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
|
|
mesh = ExtResource("1_pj6wy")
|
|
surface_material_override/0 = SubResource("ShaderMaterial_dus7y")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.168721, 0)
|
|
shape = SubResource("BoxShape3D_bsmvc")
|