You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Use correct scaling type when falling back to bilinear
This commit is contained in:
@@ -192,6 +192,7 @@ void RendererViewport::_configure_3d_render_buffers(Viewport *p_viewport) {
|
|||||||
// Fall back to bilinear scaling.
|
// Fall back to bilinear scaling.
|
||||||
WARN_PRINT_ONCE("FSR 3D resolution scaling is not designed for downsampling. Falling back to bilinear 3D resolution scaling.");
|
WARN_PRINT_ONCE("FSR 3D resolution scaling is not designed for downsampling. Falling back to bilinear 3D resolution scaling.");
|
||||||
scaling_3d_mode = RS::VIEWPORT_SCALING_3D_MODE_BILINEAR;
|
scaling_3d_mode = RS::VIEWPORT_SCALING_3D_MODE_BILINEAR;
|
||||||
|
scaling_type = RS::scaling_3d_mode_type(scaling_3d_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scaling_3d_is_not_bilinear && !upscaler_available) {
|
if (scaling_3d_is_not_bilinear && !upscaler_available) {
|
||||||
@@ -199,6 +200,7 @@ void RendererViewport::_configure_3d_render_buffers(Viewport *p_viewport) {
|
|||||||
// Fall back to bilinear scaling.
|
// Fall back to bilinear scaling.
|
||||||
WARN_PRINT_ONCE("FSR 3D resolution scaling is not available. Falling back to bilinear 3D resolution scaling.");
|
WARN_PRINT_ONCE("FSR 3D resolution scaling is not available. Falling back to bilinear 3D resolution scaling.");
|
||||||
scaling_3d_mode = RS::VIEWPORT_SCALING_3D_MODE_BILINEAR;
|
scaling_3d_mode = RS::VIEWPORT_SCALING_3D_MODE_BILINEAR;
|
||||||
|
scaling_type = RS::scaling_3d_mode_type(scaling_3d_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (use_taa && (scaling_type == RS::VIEWPORT_SCALING_3D_TYPE_TEMPORAL)) {
|
if (use_taa && (scaling_type == RS::VIEWPORT_SCALING_3D_TYPE_TEMPORAL)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user