FWGS / xash3d-fwgs

Xash3D FWGS engine.
1.51k stars 226 forks source link

RenderMode == Color + RenderFx == SlowPulse doesn't work #430

Open adslbarxatov opened 3 years ago

adslbarxatov commented 3 years ago

Hi!

Maybe, this trouble is also fixed. But we still cannot find the solution (or where this bug is located).

Bug: when func_wall has rendermode == color, renderamt == 255, renderfx == slowpulse and some non-black rendercolor the renderfx behaves as none with renderamt looks like 128.

Found in build 4344, continues in 4529. Works properly in 3737

Where to dig?

a1batross commented 3 years ago

Does it happen in GoldSrc as well?

The renderer was refactored right in the 40xx update. Now every renderfx goes through common CL_FxBlend function in renderer code.

The brush rendering code receives it through tr.blend field but ignores it for everything that's not kRenderTransAdd, TransTexture or Glow.

a1batross commented 3 years ago

And same for previous issue, can you send an example? I don't really have time to construct them on my own, sorry. :(

adslbarxatov commented 3 years ago

Done!

In textute mode (pulses properly):

eshq45_0000

In color mode (no pulse, but renderamt doesn't look like 255):

eshq45_0001

adslbarxatov commented 3 years ago

UPDATE: This trouble is not so urgent and important. I think it may be closed. But it may be great to bring this ability back to engine