[gd_scene load_steps=5 format=3 uid="uid://bsus683cmdnaw"]

[ext_resource type="Script" uid="uid://wblkq06p7i5g" path="res://scripts/camera_rig.gd" id="1_p8t3x"]
[ext_resource type="Shader" uid="uid://bh2xuki2cedbi" path="res://assets/assets/shaders/forground_shader.gdshader" id="2_8krjn"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_1stfs"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_rglo7"]
shader = ExtResource("2_8krjn")
shader_parameter/MULTIPLIER = 0.56
shader_parameter/SCALE = 0.5
shader_parameter/SOFTNESS = 0.45
shader_parameter/BASE_OPACITY = 1.0

[node name="camera_rig" type="Node3D"]
script = ExtResource("1_p8t3x")

[node name="base_camera" type="Camera3D" parent="."]
cull_mask = 1047552

[node name="background_viewport_container" type="SubViewportContainer" parent="base_camera"]
material = SubResource("ShaderMaterial_1stfs")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="background_viewport" type="SubViewport" parent="base_camera/background_viewport_container"]
transparent_bg = true
handle_input_locally = false
render_target_update_mode = 4

[node name="background_camera" type="Camera3D" parent="base_camera/background_viewport_container/background_viewport"]
cull_mask = 1047553

[node name="foreground_viewport_container" type="SubViewportContainer" parent="base_camera"]
material = SubResource("ShaderMaterial_rglo7")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="foreground_viewport" type="SubViewport" parent="base_camera/foreground_viewport_container"]
transparent_bg = true
handle_input_locally = false
render_target_update_mode = 4

[node name="foreground_camera" type="Camera3D" parent="base_camera/foreground_viewport_container/foreground_viewport"]
cull_mask = 1047554
