Try out simple portals for hermione level

This commit is contained in:
Vojta committed 2025-03-03 19:18:31 +01:00
1 parent ded1600175
commit ac606edb73
3 files changed
+43 -2

No files matched your search

@@ -117,7 +117,7 @@ func _create_viewport() -> void:
_viewport = SubViewport.new()
_viewport.name = "Viewport"
_viewport.render_target_clear_mode = SubViewport.CLEAR_MODE_ONCE
add_child(_viewport)
exit_portal.add_child(_viewport)
material_override.set_shader_parameter("albedo", _viewport.get_texture())
# Create the exit camera which renders the portal surface for the viewport