mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
More GIProbe work and fixes
This commit is contained in:
parent
6075c5f9bf
commit
6ee2f5e6b6
22 changed files with 233 additions and 113 deletions
|
|
@ -2767,7 +2767,8 @@ void SpatialEditorViewport::_menu_option(int p_option) {
|
|||
case VIEW_DISPLAY_DEBUG_SHADOW_ATLAS:
|
||||
case VIEW_DISPLAY_DEBUG_DIRECTIONAL_SHADOW_ATLAS:
|
||||
case VIEW_DISPLAY_DEBUG_GIPROBE_ALBEDO:
|
||||
case VIEW_DISPLAY_DEBUG_GIPROBE_LIGHTING: {
|
||||
case VIEW_DISPLAY_DEBUG_GIPROBE_LIGHTING:
|
||||
case VIEW_DISPLAY_DEBUG_GIPROBE_EMISSION: {
|
||||
|
||||
static const int display_options[] = {
|
||||
VIEW_DISPLAY_NORMAL,
|
||||
|
|
@ -2780,6 +2781,7 @@ void SpatialEditorViewport::_menu_option(int p_option) {
|
|||
VIEW_DISPLAY_DEBUG_DIRECTIONAL_SHADOW_ATLAS,
|
||||
VIEW_DISPLAY_DEBUG_GIPROBE_ALBEDO,
|
||||
VIEW_DISPLAY_DEBUG_GIPROBE_LIGHTING,
|
||||
VIEW_DISPLAY_DEBUG_GIPROBE_EMISSION,
|
||||
VIEW_MAX
|
||||
};
|
||||
static const Viewport::DebugDraw debug_draw_modes[] = {
|
||||
|
|
@ -2792,7 +2794,8 @@ void SpatialEditorViewport::_menu_option(int p_option) {
|
|||
Viewport::DEBUG_DRAW_SHADOW_ATLAS,
|
||||
Viewport::DEBUG_DRAW_DIRECTIONAL_SHADOW_ATLAS,
|
||||
Viewport::DEBUG_DRAW_GI_PROBE_ALBEDO,
|
||||
Viewport::DEBUG_DRAW_GI_PROBE_LIGHTING
|
||||
Viewport::DEBUG_DRAW_GI_PROBE_LIGHTING,
|
||||
Viewport::DEBUG_DRAW_GI_PROBE_EMISSION
|
||||
};
|
||||
|
||||
int idx = 0;
|
||||
|
|
@ -3635,6 +3638,7 @@ SpatialEditorViewport::SpatialEditorViewport(SpatialEditor *p_spatial_editor, Ed
|
|||
display_submenu->add_separator();
|
||||
display_submenu->add_radio_check_item(TTR("GIProbe Lighting"), VIEW_DISPLAY_DEBUG_GIPROBE_LIGHTING);
|
||||
display_submenu->add_radio_check_item(TTR("GIProbe Albedo"), VIEW_DISPLAY_DEBUG_GIPROBE_ALBEDO);
|
||||
display_submenu->add_radio_check_item(TTR("GIProbe Emission"), VIEW_DISPLAY_DEBUG_GIPROBE_EMISSION);
|
||||
display_submenu->set_name("display_advanced");
|
||||
view_menu->get_popup()->add_submenu_item(TTR("Display Advanced..."), "display_advanced");
|
||||
view_menu->get_popup()->add_separator();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue