more quality shit

This commit is contained in:
2024-01-28 23:26:59 +01:00
parent fbebc382b9
commit c7b9ef578e
47 changed files with 924 additions and 150 deletions

View File

@@ -0,0 +1,14 @@
shader_type spatial;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
// Called for every pixel the material is visible on.
}
//void light() {
// Called for every pixel for every light affecting the material.
// Uncomment to replace the default light processing function with this one.
//}

View File

@@ -1,20 +1,14 @@
[gd_scene load_steps=6 format=3 uid="uid://idxtvhvxccgl"]
[gd_scene load_steps=5 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="StandardMaterial3D" id="StandardMaterial3D_514sr"]
albedo_color = Color(0.243137, 0.0901961, 0, 0.831373)
[sub_resource type="BoxShape3D" id="BoxShape3D_bsmvc"]
size = Vector3(0.15, 0.5, 0.15)
@@ -28,7 +22,7 @@ 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")
surface_material_override/0 = SubResource("StandardMaterial3D_514sr")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.168721, 0)

View File

@@ -0,0 +1,46 @@
[gd_scene load_steps=7 format=3 uid="uid://jpjth6qixuym"]
[ext_resource type="ArrayMesh" uid="uid://c3whx2k0x3txk" path="res://assets/models/ceiling_lamp.obj" id="1_v7x4v"]
[ext_resource type="Material" uid="uid://wi5k6axixuwr" path="res://assets/materials/metal.material" id="2_yfdrc"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_rff84"]
rough = true
bounce = 0.1
absorbent = true
[sub_resource type="GDScript" id="GDScript_y1mpp"]
script/source = "extends RigidBody3D
@onready var mesh: MeshInstance3D = $MeshInstance3D
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
if !freeze:
mesh.set_surface_override_material(1,preload(\"res://resources/light_bulb_off.tres\"))
"
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nuagc"]
emission_enabled = true
emission = Color(1, 1, 0, 1)
emission_energy_multiplier = 16.0
[sub_resource type="BoxShape3D" id="BoxShape3D_bsmvc"]
size = Vector3(1.17546, 0.681323, 1.19681)
[node name="CeilingLamp" type="RigidBody3D" groups=["pushables"]]
collision_priority = 2.0
mass = 1.5
physics_material_override = SubResource("PhysicsMaterial_rff84")
freeze = true
continuous_cd = true
script = SubResource("GDScript_y1mpp")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0, 0, 0)
mesh = ExtResource("1_v7x4v")
surface_material_override/0 = ExtResource("2_yfdrc")
surface_material_override/1 = SubResource("StandardMaterial3D_nuagc")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00848395, 0.31488, 0.0030334)
shape = SubResource("BoxShape3D_bsmvc")

View File

@@ -0,0 +1,43 @@
[gd_scene load_steps=10 format=3 uid="uid://0l85runj5xs6"]
[ext_resource type="Texture2D" uid="uid://2vf1arfpjpls" path="res://assets/textures/material/light_planks/light_planks_color.png" id="1_csx1h"]
[ext_resource type="Texture2D" uid="uid://bo5iehmqthkeu" path="res://assets/textures/material/light_planks/light_planks_ambientocclusion.png" id="2_lkemc"]
[ext_resource type="Texture2D" uid="uid://cyklcrww6x6ll" path="res://assets/textures/material/light_planks/light_planks_metalness.png" id="3_dm1q2"]
[ext_resource type="Texture2D" uid="uid://puhr4gxfrfep" path="res://assets/textures/material/light_planks/light_planks_normalgl.png" id="4_3bt2i"]
[ext_resource type="Texture2D" uid="uid://btaq3y61uc4pm" path="res://assets/textures/material/light_planks/light_planks_roughness.png" id="5_btl8m"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_rff84"]
rough = true
bounce = 0.1
absorbent = true
[sub_resource type="BoxMesh" id="BoxMesh_qx6i0"]
size = Vector3(1, 0.05, 6)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0kjst"]
albedo_texture = ExtResource("1_csx1h")
metallic = 1.0
metallic_texture = ExtResource("3_dm1q2")
roughness_texture = ExtResource("5_btl8m")
normal_enabled = true
normal_scale = 3.0
normal_texture = ExtResource("4_3bt2i")
ao_enabled = true
ao_texture = ExtResource("2_lkemc")
uv1_scale = Vector3(10, 10, 10)
[sub_resource type="BoxShape3D" id="BoxShape3D_bsmvc"]
size = Vector3(1, 0.05, 6)
[node name="Plank" 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="."]
mesh = SubResource("BoxMesh_qx6i0")
surface_material_override/0 = SubResource("StandardMaterial3D_0kjst")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_bsmvc")