Merge pull request #77808 from puchik/use-normal-no-env
Use depth pass mode with normals if required, even if Environment is null
This commit is contained in:
commit
91cddd6c39
1 changed files with 2 additions and 0 deletions
|
|
@ -1699,6 +1699,8 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co
|
|||
scene_state.used_normal_texture) {
|
||||
depth_pass_mode = PASS_MODE_DEPTH_NORMAL_ROUGHNESS;
|
||||
}
|
||||
} else if (get_debug_draw_mode() == RS::VIEWPORT_DEBUG_DRAW_NORMAL_BUFFER || scene_state.used_normal_texture) {
|
||||
depth_pass_mode = PASS_MODE_DEPTH_NORMAL_ROUGHNESS;
|
||||
}
|
||||
|
||||
switch (depth_pass_mode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue