mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Make environment energy adjustable as a float in 3D editor's preview environment
This commit is contained in:
parent
d023e51363
commit
3ce0ebb242
@ -8631,8 +8631,10 @@ void fragment() {
|
||||
environ_ground_color->get_popup()->connect("about_to_popup", callable_mp(EditorNode::get_singleton(), &EditorNode::setup_color_picker).bind(environ_ground_color->get_picker()));
|
||||
environ_vb->add_margin_child(TTR("Ground Color"), environ_ground_color);
|
||||
environ_energy = memnew(EditorSpinSlider);
|
||||
environ_energy->connect("value_changed", callable_mp(this, &Node3DEditor::_preview_settings_changed).unbind(1));
|
||||
environ_energy->set_max(8.0);
|
||||
environ_energy->set_min(0);
|
||||
environ_energy->set_step(0.05);
|
||||
environ_energy->connect("value_changed", callable_mp(this, &Node3DEditor::_preview_settings_changed).unbind(1));
|
||||
environ_vb->add_margin_child(TTR("Sky Energy"), environ_energy);
|
||||
HBoxContainer *fx_vb = memnew(HBoxContainer);
|
||||
fx_vb->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
|
Loading…
Reference in New Issue
Block a user