diff options
author | mikatomik <mikec_2007@hotmail.com> | 2022-09-16 01:09:50 -0400 |
---|---|---|
committer | mikatomik <mikec_2007@hotmail.com> | 2022-09-16 01:09:50 -0400 |
commit | bb15837504d5617889251139caa7a9065ce73775 (patch) | |
tree | 1f955393a98d2911ad8d98edcedb5c46a0292ddf | |
parent | feb729727bf9b8593d3f8851e5703f4aa2105553 (diff) | |
download | game_jam49-bb15837504d5617889251139caa7a9065ce73775.tar.gz game_jam49-bb15837504d5617889251139caa7a9065ce73775.zip |
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
-rw-r--r-- | maps/main_stage/assets/ship/ship.tscn | 24 |
1 files changed, 23 insertions, 1 deletions
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 ) |