[gd_scene load_steps=8 format=3 uid="uid://dcy7hdm1y5dwb"]

[ext_resource type="Script" uid="uid://o17v5m75ew03" path="res://scenes/custom_render.gd" id="1_xa3mo"]
[ext_resource type="PackedScene" uid="uid://157h04x0krfu" path="res://scenes/room.tscn" id="2_w1ssw"]
[ext_resource type="Shader" uid="uid://bf2nxtrto5u5r" path="res://scenes/main_render.gdshader" id="3_1qky5"]

[sub_resource type="Curve" id="Curve_km3hj"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.26234567, 0.14241672), 0.0, 0.0, 0, 0, Vector2(0.5092592, 0.3427866), 0.0, 0.0, 0, 0, Vector2(0.7561728, 0.6233045), 0.0, 0.0, 0, 0, Vector2(0.8641975, 0.97595555), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.063336894, 0.0, 0, 0]
point_count = 6

[sub_resource type="CurveTexture" id="CurveTexture_5747v"]
curve = SubResource("Curve_km3hj")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_nxp0e"]
shader = ExtResource("3_1qky5")
shader_parameter/target_tex_size = Vector2(427, 240)
shader_parameter/sample_count = 1
shader_parameter/color_steps = 16.0
shader_parameter/color_curve = SubResource("CurveTexture_5747v")

[sub_resource type="ViewportTexture" id="ViewportTexture_2d5yc"]
viewport_path = NodePath("SubViewportContainer/SubViewport")

[node name="Rendering" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="SubViewportContainer" type="SubViewportContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
stretch = true
script = ExtResource("1_xa3mo")

[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
handle_input_locally = false
gui_snap_controls_to_pixels = false
size = Vector2i(1152, 648)
render_target_update_mode = 4

[node name="BlockoutRoom" parent="SubViewportContainer/SubViewport" instance=ExtResource("2_w1ssw")]

[node name="TextureRect" type="TextureRect" parent="."]
material = SubResource("ShaderMaterial_nxp0e")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = SubResource("ViewportTexture_2d5yc")
