[gd_scene load_steps=8 format=2] [ext_resource path="res://assets/scripts/PortalPair.gd" type="Script" id=1] [ext_resource path="res://assets/scenes/Portal.tscn" type="PackedScene" id=2] [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="Shader" id=3] 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=4] resource_local_to_scene = true shader = SubResource( 3 ) [sub_resource type="QuadMesh" id=5] size = Vector2( 0, 0 ) [node name="PortalPair" type="Node"] script = ExtResource( 1 ) [node name="PortalA" parent="." instance=ExtResource( 2 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4, 0, 0 ) [node name="Camera" parent="PortalA/Viewport" index="0"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4, 0, 0 ) [node name="MeshInstance" parent="PortalA" index="2"] material_override = SubResource( 2 ) [node name="PortalB" parent="." instance=ExtResource( 2 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.41454, 0.27, -0.192314 ) [node name="Camera" parent="PortalB/Viewport" index="0"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0 ) [node name="MeshInstance" parent="PortalB" index="2"] transform = Transform( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) visible = false material_override = SubResource( 4 ) mesh = SubResource( 5 ) [editable path="PortalA"] [editable path="PortalB"]