World env

This commit is contained in:
Rendo 2026-01-16 18:33:53 +05:00
commit aa752466ef
3 changed files with 26 additions and 2 deletions

12
debug/debug_env.tres Normal file
View file

@ -0,0 +1,12 @@
[gd_resource type="Environment" format=3 uid="uid://ceraut2if878v"]
[resource]
background_mode = 1
background_color = Color(0.23449998, 0.27492496, 0.35, 1)
tonemap_mode = 3
tonemap_white = 8.0
ssr_enabled = true
ssao_enabled = true
ssil_enabled = true
ssil_radius = 2.5
adjustment_enabled = true

View file

@ -1,19 +1,31 @@
[gd_scene load_steps=4 format=3 uid="uid://b4pi4rjpbh0c8"] [gd_scene load_steps=5 format=3 uid="uid://b4pi4rjpbh0c8"]
[ext_resource type="Material" uid="uid://cyej4ph6hcnou" path="res://debug/prototypes/Orangemat.tres" id="1_fj1e3"] [ext_resource type="Material" uid="uid://cyej4ph6hcnou" path="res://debug/prototypes/Orangemat.tres" id="1_fj1e3"]
[ext_resource type="Environment" uid="uid://ceraut2if878v" path="res://debug/debug_env.tres" id="2_fqfad"]
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_tbca2"] [sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_tbca2"]
[sub_resource type="PlaneMesh" id="PlaneMesh_fqfad"] [sub_resource type="PlaneMesh" id="PlaneMesh_fqfad"]
lightmap_size_hint = Vector2i(5002, 5002)
material = ExtResource("1_fj1e3") material = ExtResource("1_fj1e3")
add_uv2 = true
size = Vector2(1000, 1000) size = Vector2(1000, 1000)
[node name="DebugLevel" type="Node3D"] [node name="DebugLevel" type="Node3D"]
[node name="StaticBody3D" type="StaticBody3D" parent="."] [node name="StaticBody3D" type="StaticBody3D" parent="."]
metadata/_edit_lock_ = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"] [node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("WorldBoundaryShape3D_tbca2") shape = SubResource("WorldBoundaryShape3D_tbca2")
metadata/_edit_lock_ = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"] [node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"]
mesh = SubResource("PlaneMesh_fqfad") mesh = SubResource("PlaneMesh_fqfad")
metadata/_edit_lock_ = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = ExtResource("2_fqfad")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.96950954, 0.24505356, 0, -0.24505356, 0.96950954, 0, 1.4323826, 0)

View file

@ -1,6 +1,6 @@
[gd_resource type="ORMMaterial3D" load_steps=2 format=3 uid="uid://cyej4ph6hcnou"] [gd_resource type="ORMMaterial3D" load_steps=2 format=3 uid="uid://cyej4ph6hcnou"]
[ext_resource type="Texture2D" uid="uid://b8aqstr5es5x4" path="res://assets/materials/prototypes/prototype_orange_256x256.png" id="1_ntui7"] [ext_resource type="Texture2D" uid="uid://b8aqstr5es5x4" path="res://debug/prototypes/prototype_orange_256x256.png" id="1_ntui7"]
[resource] [resource]
albedo_texture = ExtResource("1_ntui7") albedo_texture = ExtResource("1_ntui7")