JKSunny / EternalJK

Effort to maintain and improve OpenJK
GNU General Public License v2.0
11 stars 1 forks source link

Vulkan: Support fog mode 2 #7

Open JKSunny opened 1 year ago

JKSunny commented 1 year ago

Currently only r_drawfog mode 1 is supported which is linear fog. Fog mode 2 in vulkan enables performance optimizations. This mode collapses 2 drawcalls in one.

Bacause its /r_drawfog 2 its confused with vanilla's hardware fog mode

Possible solutions: Use fog collapse by default in mode 1, and implement equivalent mode 2 like vanilla.