added shader materials

This commit is contained in:
2023-01-03 18:39:04 +01:00
parent 40cca23844
commit 332c29916b
3 changed files with 73 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
[gd_scene load_steps=12 format=3 uid="uid://dqyb5g1lyurfj"]
[gd_scene load_steps=16 format=3 uid="uid://dqyb5g1lyurfj"]
[ext_resource type="PackedScene" uid="uid://b2ncexsbkd2ca" path="res://scenes/player.tscn" id="1_1hi18"]
[ext_resource type="Shader" uid="uid://v3mxp45i58ws" path="res://shader/debug2.tres" id="1_b4a1p"]
[ext_resource type="Shader" uid="uid://ce67ji5dkjiiv" path="res://shader/debug1.tres" id="2_3p2fh"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_rubfc"]
ground_bottom_color = Color(0.87451, 0.952941, 1, 1)
@@ -18,12 +20,24 @@ ssr_fade_out = 2.21914
[sub_resource type="CameraAttributesPhysical" id="CameraAttributesPhysical_0vf24"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0qhj1"]
render_priority = 0
shader = ExtResource("1_b4a1p")
shader_parameter/ColorParameter = null
[sub_resource type="BoxMesh" id="BoxMesh_hmqcx"]
material = SubResource("ShaderMaterial_0qhj1")
[sub_resource type="BoxShape3D" id="BoxShape3D_bxkt8"]
size = Vector3(1, 1, 1.24943)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_2hee6"]
render_priority = 0
shader = ExtResource("2_3p2fh")
shader_parameter/ColorParameter = null
[sub_resource type="PlaneMesh" id="PlaneMesh_p3q8d"]
material = SubResource("ShaderMaterial_2hee6")
[sub_resource type="BoxShape3D" id="BoxShape3D_pxtb0"]
size = Vector3(1.994, 0.048, 2)
@@ -67,7 +81,7 @@ mesh = SubResource("BoxMesh_865hq")
shape = SubResource("BoxShape3D_1tea2")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.994703, -0.00611287, -0.102607, 0.101106, 0.238088, 0.965967, 0.0185247, -0.971224, 0.237445, 0, 0, 5.34355)
transform = Transform3D(1, 0, 0, 0, -0.396122, 0.918198, 0, -0.918198, -0.396122, 0, 0, 0)
shadow_enabled = true
[node name="player" parent="." instance=ExtResource("1_1hi18")]