14 lines
402 B
GDScript
14 lines
402 B
GDScript
extends Node3D
|
|
|
|
@onready var view_camera: Camera3D = %ViewCamera
|
|
@onready var side_display_sub_viewport: SubViewport = $SideDisplaySubViewport
|
|
@onready var main_sub_viewport: SubViewport = $MainSubViewport
|
|
|
|
func _init() -> void:
|
|
Global.EgoVehicle3D = self
|
|
|
|
func SideDisplayGetTexture():
|
|
return side_display_sub_viewport.get_texture()
|
|
func MainSubGetTexture():
|
|
return main_sub_viewport.get_texture()
|