[gd_scene load_steps=7 format=2] [ext_resource path="res://Region.tscn" type="PackedScene" id=1] [ext_resource path="res://main.tscn" type="PackedScene" id=2] [ext_resource path="res://osc.tscn" type="PackedScene" id=3] [sub_resource type="Shader" id=1] resource_local_to_scene = true code = "shader_type spatial; render_mode unshaded; uniform sampler2D texture_albedo : hint_albedo; void vertex() { } void fragment() { vec2 base_uv = SCREEN_UV; vec4 albedo_tex = texture(texture_albedo,base_uv); ALBEDO = albedo_tex.rgb; ALBEDO = pow(ALBEDO, vec3(2.2)); } " [sub_resource type="ShaderMaterial" id=2] resource_local_to_scene = true shader = SubResource( 1 ) [sub_resource type="QuadMesh" id=3] size = Vector2( 4, 7 ) [node name="Portal" type="Spatial" groups=["portals"]] [node name="CameraHolder" type="Spatial" parent="."] [node name="Viewport" type="Viewport" parent="."] [node name="Camera" type="Camera" parent="Viewport"] current = true fov = 60.0 far = 500.0 [node name="MeshInstance" type="MeshInstance" parent="."] material_override = SubResource( 2 ) mesh = SubResource( 3 ) [node name="Region" parent="." instance=ExtResource( 1 )] [node name="osc" parent="." instance=ExtResource( 3 )] [node name="main" parent="." instance=ExtResource( 2 )]