0
Fixed

Additive Shader bug when 'recieve fog' is enabled

robert briscoe 11 jaar geleden bijgewerkt door Freya Holmér (Developer) 11 jaar geleden 5

See image below for an example:

Image 91

Antwoord

Antwoord
Fixed
Fog overrides has now been added to Beta 0.15 :)

It looks like it's not blending additive materials with fog properly

There are similar issues with refractive shaders also

Making fog work on just additive/refractive is one thing, but a generalised system sounds tricky! This begs the question - how should fog affect all combinations of blending? For additive in particular it should render the fog with a black color, which makes the fog color simply make the additive blending, well, stop adding (Since x + 0 = x)

I agree a generalised system is hard to do, especially when you have custom blend modes available.

Perhaps when it comes to custom blend modes, specifying a custom fog colour could be an option? so for example, for a modulated x2 blend mode I could specify a fog colour of 127,127,127, or for multiplicative, 255,255,255 etc?

Fog overrides should be provided in any case

Under review
Fog overrides has now been added to Beta 0.15 :)
Antwoord
Fixed
Fog overrides has now been added to Beta 0.15 :)