Use 4× MSAA for the Advanced Import Options 3D preview

This results in better preview quality and is more consistent with
the material preview in the inspector.
This commit is contained in:
Hugo Locurcio 2021-11-04 19:27:23 +01:00
parent ee939c919b
commit f5170dca75
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -110,7 +110,7 @@ MeshEditor::MeshEditor() {
viewport->set_world_3d(world_3d); //use own world
add_child(viewport);
viewport->set_disable_input(true);
viewport->set_msaa(Viewport::MSAA_2X);
viewport->set_msaa(Viewport::MSAA_4X);
set_stretch(true);
camera = memnew(Camera3D);
camera->set_transform(Transform3D(Basis(), Vector3(0, 0, 1.1)));