Merge 57085a0416
into a0c28777bf
This commit is contained in:
commit
2600bb59b4
|
@ -1569,7 +1569,7 @@
|
|||
Default background clear color. Overridable per [Viewport] using its [Environment]. See [member Environment.background_mode] and [member Environment.background_color] in particular. To change this default color programmatically, use [method RenderingServer.set_default_clear_color].
|
||||
</member>
|
||||
<member name="rendering/environment/defaults/default_environment" type="String" setter="" getter="" default="""">
|
||||
[Environment] that will be used as a fallback environment in case a scene does not specify its own environment. The default environment is loaded in at scene load time regardless of whether you have set an environment or not. If you do not rely on the fallback environment, it is best to delete [code]default_env.tres[/code], or to specify a different default environment here.
|
||||
[Environment] that will be used as a fallback environment in case a scene does not specify its own environment. The default environment is loaded in at scene load time regardless of whether you have set an environment or not. If you do not rely on the fallback environment, you do not need to set this property.
|
||||
</member>
|
||||
<member name="rendering/environment/glow/upscale_mode" type="int" setter="" getter="" default="1">
|
||||
Sets how the glow effect is upscaled before being copied onto the screen. Linear is faster, but looks blocky. Bicubic is slower but looks smooth.
|
||||
|
|
|
@ -477,26 +477,11 @@ private:
|
|||
initial_settings["rendering/vulkan/rendering/back_end"] = rasterizer_button_group->get_pressed_button()->get_meta(SNAME("driver_name"));
|
||||
initial_settings["application/config/name"] = project_name->get_text().strip_edges();
|
||||
initial_settings["application/config/icon"] = "res://icon.png";
|
||||
initial_settings["rendering/environment/defaults/default_environment"] = "res://default_env.tres";
|
||||
|
||||
if (ProjectSettings::get_singleton()->save_custom(dir.plus_file("project.godot"), initial_settings, Vector<String>(), false) != OK) {
|
||||
set_message(TTR("Couldn't create project.godot in project path."), MESSAGE_ERROR);
|
||||
} else {
|
||||
ResourceSaver::save(dir.plus_file("icon.png"), create_unscaled_default_project_icon());
|
||||
|
||||
FileAccess *f = FileAccess::open(dir.plus_file("default_env.tres"), FileAccess::WRITE);
|
||||
if (!f) {
|
||||
set_message(TTR("Couldn't create project.godot in project path."), MESSAGE_ERROR);
|
||||
} else {
|
||||
f->store_line("[gd_resource type=\"Environment\" load_steps=2 format=3]");
|
||||
f->store_line("");
|
||||
f->store_line("[sub_resource type=\"Sky\" id=\"1\"]");
|
||||
f->store_line("");
|
||||
f->store_line("[resource]");
|
||||
f->store_line("background_mode = 2");
|
||||
f->store_line("sky = SubResource( \"1\" )");
|
||||
memdelete(f);
|
||||
}
|
||||
}
|
||||
|
||||
} else if (mode == MODE_INSTALL) {
|
||||
|
|
Loading…
Reference in a new issue