Add tonemapping to 5 rooms level

This commit is contained in:
Vojtěch Struhár 2025-02-13 23:06:39 +01:00
parent 30d2636fdb
commit f62e1aee25
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://dpatwnepecl8r"] [gd_scene load_steps=13 format=3 uid="uid://dpatwnepecl8r"]
[ext_resource type="PackedScene" uid="uid://b5x7fmpwck335" path="res://hud.tscn" id="1_hl706"] [ext_resource type="PackedScene" uid="uid://b5x7fmpwck335" path="res://hud.tscn" id="1_hl706"]
[ext_resource type="MeshLibrary" uid="uid://bedqgubx1g1uf" path="res://prototypes.tres" id="2_2dlki"] [ext_resource type="MeshLibrary" uid="uid://bedqgubx1g1uf" path="res://prototypes.tres" id="2_2dlki"]
@ -6,6 +6,7 @@
[ext_resource type="ArrayMesh" uid="uid://bqilnvlfws6xh" path="res://portal-mesh.tres" id="4_mkbk1"] [ext_resource type="ArrayMesh" uid="uid://bqilnvlfws6xh" path="res://portal-mesh.tres" id="4_mkbk1"]
[ext_resource type="Script" uid="uid://d2bvvjsibau8c" path="res://addons/simple-portal-system/scripts/portal.gd" id="5_2gwo3"] [ext_resource type="Script" uid="uid://d2bvvjsibau8c" path="res://addons/simple-portal-system/scripts/portal.gd" id="5_2gwo3"]
[ext_resource type="Script" uid="uid://bkv7t4hw21byg" path="res://addons/simple-portal-system/scripts/simple_portal_teleport.gd" id="6_1dqps"] [ext_resource type="Script" uid="uid://bkv7t4hw21byg" path="res://addons/simple-portal-system/scripts/simple_portal_teleport.gd" id="6_1dqps"]
[ext_resource type="Script" uid="uid://cili3lyodjqel" path="res://portal_environment_adapter.gd" id="7_2dlki"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_lquwl"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_lquwl"]
@ -14,6 +15,7 @@ sky_material = SubResource("ProceduralSkyMaterial_lquwl")
[sub_resource type="Environment" id="Environment_272bh"] [sub_resource type="Environment" id="Environment_272bh"]
sky = SubResource("Sky_7mycd") sky = SubResource("Sky_7mycd")
tonemap_mode = 2
[sub_resource type="Environment" id="Environment_lquwl"] [sub_resource type="Environment" id="Environment_lquwl"]
@ -257,3 +259,7 @@ script = ExtResource("6_1dqps")
[node name="CollisionShape3D" type="CollisionShape3D" parent="P_red_wide/Teleport"] [node name="CollisionShape3D" type="CollisionShape3D" parent="P_red_wide/Teleport"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.1) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.1)
shape = SubResource("BoxShape3D_1bvp3") shape = SubResource("BoxShape3D_1bvp3")
[node name="EnvironmentAdapter" type="Node" parent="." node_paths=PackedStringArray("base")]
script = ExtResource("7_2dlki")
base = NodePath("../WorldEnvironment")

View File

@ -14,6 +14,5 @@ func _ready() -> void:
adapted_env.tonemap_exposure = 1 adapted_env.tonemap_exposure = 1
for p in get_tree().get_nodes_in_group("portals"): for p in get_tree().get_nodes_in_group("portals"):
print(p.name)
if p is Portal: if p is Portal:
p.exit_environment = adapted_env p.exit_environment = adapted_env