mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
parent
9a7dbc2aca
commit
eaae4b6408
260 changed files with 5328 additions and 5474 deletions
|
|
@ -123,23 +123,23 @@ MeshEditor::MeshEditor() {
|
|||
viewport->set_disable_input(true);
|
||||
viewport->set_msaa(Viewport::MSAA_2X);
|
||||
set_stretch(true);
|
||||
camera = memnew(Camera);
|
||||
camera = memnew(Camera3D);
|
||||
camera->set_transform(Transform(Basis(), Vector3(0, 0, 1.1)));
|
||||
camera->set_perspective(45, 0.1, 10);
|
||||
viewport->add_child(camera);
|
||||
|
||||
light1 = memnew(DirectionalLight);
|
||||
light1 = memnew(DirectionalLight3D);
|
||||
light1->set_transform(Transform().looking_at(Vector3(-1, -1, -1), Vector3(0, 1, 0)));
|
||||
viewport->add_child(light1);
|
||||
|
||||
light2 = memnew(DirectionalLight);
|
||||
light2 = memnew(DirectionalLight3D);
|
||||
light2->set_transform(Transform().looking_at(Vector3(0, 1, 0), Vector3(0, 0, 1)));
|
||||
light2->set_color(Color(0.7, 0.7, 0.7));
|
||||
viewport->add_child(light2);
|
||||
|
||||
rotation = memnew(Spatial);
|
||||
rotation = memnew(Node3D);
|
||||
viewport->add_child(rotation);
|
||||
mesh_instance = memnew(MeshInstance);
|
||||
mesh_instance = memnew(MeshInstance3D);
|
||||
rotation->add_child(mesh_instance);
|
||||
|
||||
set_custom_minimum_size(Size2(1, 150) * EDSCALE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue