Rename other viewport to OutlineViewport

main
copygirl 2 years ago
parent ccca58f5a3
commit 6a153150ad
  1. 6
      scenes/Main.tscn

@ -1,4 +1,4 @@
[gd_scene load_steps=5 format=3] [gd_scene load_steps=5 format=3 uid="uid://bn6y24u16jtdj"]
[ext_resource type="PackedScene" uid="uid://b7o2y54duqxft" path="res://scenes/World.tscn" id="1_px6sj"] [ext_resource type="PackedScene" uid="uid://b7o2y54duqxft" path="res://scenes/World.tscn" id="1_px6sj"]
[ext_resource type="Shader" path="res://shaders/outline.gdshader" id="2_dd8cf"] [ext_resource type="Shader" path="res://shaders/outline.gdshader" id="2_dd8cf"]
@ -22,12 +22,12 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
stretch = true stretch = true
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"] [node name="OutlineViewport" type="SubViewport" parent="SubViewportContainer"]
transparent_bg = true transparent_bg = true
handle_input_locally = false handle_input_locally = false
size = Vector2i(1152, 648) size = Vector2i(1152, 648)
render_target_update_mode = 4 render_target_update_mode = 4
[node name="ClonedCamera" type="Camera3D" parent="SubViewportContainer/SubViewport"] [node name="ClonedCamera" type="Camera3D" parent="SubViewportContainer/OutlineViewport"]
cull_mask = 2 cull_mask = 2
script = ExtResource("2_m7qgc") script = ExtResource("2_m7qgc")

Loading…
Cancel
Save