Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/GiantBlargg/fix_transparency_so…
Browse files Browse the repository at this point in the history
…rting' into groups-5.x
  • Loading branch information
fire committed Jul 3, 2021
2 parents 4aa66e5 + 15152ba commit e51c5f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co

_fill_render_list(RENDER_LIST_OPAQUE, p_render_data, PASS_MODE_COLOR, using_sdfgi, using_sdfgi || using_voxelgi);
render_list[RENDER_LIST_OPAQUE].sort_by_key();
render_list[RENDER_LIST_ALPHA].sort_by_depth();
render_list[RENDER_LIST_ALPHA].sort_by_reverse_depth_and_priority();
_fill_instance_data(RENDER_LIST_OPAQUE, p_render_data->render_info ? p_render_data->render_info->info[RS::VIEWPORT_RENDER_INFO_TYPE_VISIBLE] : (int *)nullptr);
_fill_instance_data(RENDER_LIST_ALPHA);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ class RenderForwardClustered : public RendererSceneRenderRD {
}
};

void sort_by_reverse_depth_and_priority(bool p_alpha) { //used for alpha
void sort_by_reverse_depth_and_priority() { //used for alpha

SortArray<GeometryInstanceSurfaceDataCache *, SortByReverseDepthAndPriority> sorter;
sorter.sort(elements.ptr(), elements.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ void RenderForwardMobile::_render_scene(RenderDataRD *p_render_data, const Color

_fill_render_list(RENDER_LIST_OPAQUE, p_render_data, PASS_MODE_COLOR);
render_list[RENDER_LIST_OPAQUE].sort_by_key();
render_list[RENDER_LIST_ALPHA].sort_by_depth();
render_list[RENDER_LIST_ALPHA].sort_by_reverse_depth_and_priority();

// we no longer use this...
_fill_instance_data(RENDER_LIST_OPAQUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class RenderForwardMobile : public RendererSceneRenderRD {
}
};

void sort_by_reverse_depth_and_priority(bool p_alpha) { //used for alpha
void sort_by_reverse_depth_and_priority() { //used for alpha

SortArray<GeometryInstanceSurfaceDataCache *, SortByReverseDepthAndPriority> sorter;
sorter.sort(elements.ptr(), elements.size());
Expand Down

0 comments on commit e51c5f4

Please sign in to comment.