mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[vulkan] Correct OIT sorting
The reversed depth buffer is very nice, but it also reversed the OIT blending. Too much demo watching not enough walking around in the maps (especially start near the episode 4 gate).
This commit is contained in:
parent
6fe127dd0b
commit
7537cb8d1c
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ BlendFrags (vec4 color)
|
|||
for (int i = 1; i < numFrags; i++) {
|
||||
FragData toInsert = frags[i];
|
||||
int j = i;
|
||||
while (j > 0 && toInsert.depth > frags[j - 1].depth) {
|
||||
while (j > 0 && toInsert.depth < frags[j - 1].depth) {
|
||||
frags[j] = frags[j - 1];
|
||||
j--;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue