2024-02-05 22:42:04 +00:00
|
|
|
extends OptionButton
|
|
|
|
|
|
|
|
func _ready():
|
2024-02-10 18:21:10 +00:00
|
|
|
match get_viewport().scaling_3d_mode:
|
2024-02-05 22:42:04 +00:00
|
|
|
Viewport.SCALING_3D_MODE_BILINEAR:
|
|
|
|
selected = 0
|
|
|
|
Viewport.SCALING_3D_MODE_FSR:
|
|
|
|
selected = 1
|
|
|
|
Viewport.SCALING_3D_MODE_FSR2:
|
|
|
|
selected = 2
|
|
|
|
|
|
|
|
func on_item_selected(index: int):
|
|
|
|
match index:
|
|
|
|
0:
|
2024-02-10 18:21:10 +00:00
|
|
|
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_BILINEAR
|
2024-02-05 22:42:04 +00:00
|
|
|
1:
|
2024-02-10 18:21:10 +00:00
|
|
|
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR
|
2024-02-05 22:42:04 +00:00
|
|
|
2:
|
2024-02-10 18:21:10 +00:00
|
|
|
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR2
|