From bb15837504d5617889251139caa7a9065ce73775 Mon Sep 17 00:00:00 2001 From: mikatomik Date: Fri, 16 Sep 2022 01:09:50 -0400 Subject: Hookup final camera in bridge Locations of the cameras are subject to change but they are up and working, though they must be rendered in unshaded mode or the textures will not show up for... some reason --- maps/main_stage/assets/ship/ship.tscn | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/maps/main_stage/assets/ship/ship.tscn b/maps/main_stage/assets/ship/ship.tscn index 1552817..4c2c90d 100644 --- a/maps/main_stage/assets/ship/ship.tscn +++ b/maps/main_stage/assets/ship/ship.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=61 format=2] +[gd_scene load_steps=63 format=2] [ext_resource path="res://maps/main_stage/assets/ship/rear_deck.material" type="Material" id=1] [ext_resource path="res://maps/main_stage/assets/staircase_1/staircase_1.tscn" type="PackedScene" id=2] @@ -87,7 +87,19 @@ resource_local_to_scene = true material = SubResource( 43 ) size = Vector2( 1.365, 0.641 ) +[sub_resource type="ViewportTexture" id=44] +viewport_path = NodePath("to_be_decided_camera_location") + +[sub_resource type="SpatialMaterial" id=45] +resource_local_to_scene = true +albedo_texture = SubResource( 44 ) +clearcoat_enabled = true +clearcoat = 1.0 +clearcoat_gloss = 0.9 + [sub_resource type="PlaneMesh" id=33] +resource_local_to_scene = true +material = SubResource( 45 ) size = Vector2( 1.365, 0.641 ) [sub_resource type="ArrayMesh" id=34] @@ -515,3 +527,13 @@ render_target_v_flip = true [node name="Camera" type="Camera" parent="top_deck"] transform = Transform( 1, 0, 0, 0, 0.962161, 0.272482, 0, -0.272482, 0.962161, 0, 22.3256, 31.2897 ) + +[node name="to_be_decided_camera_location" type="Viewport" parent="."] +size = Vector2( 320, 180 ) +hdr = false +keep_3d_linear = true +debug_draw = 1 +render_target_v_flip = true + +[node name="Camera" type="Camera" parent="to_be_decided_camera_location"] +transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 7.94605, -41.0401 ) -- cgit v1.2.3