mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
smoke fog fix
This commit is contained in:
@@ -17,11 +17,11 @@ layout(location = 1) out vec4 out_motion;
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
vec4 tex_color = texture(tex1, f_coord);
|
vec4 tex_color = texture(tex1, f_coord) * f_color;
|
||||||
#if POSTFX_ENABLED
|
#if POSTFX_ENABLED
|
||||||
out_color = tex_color * f_color;
|
out_color = vec4(apply_fog(tex_color.rgb), tex_color.a);
|
||||||
#else
|
#else
|
||||||
out_color = tonemap(tex_color * f_color);
|
out_color = tonemap(vec4(apply_fog(tex_color.rgb), tex_color.a));
|
||||||
#endif
|
#endif
|
||||||
#if MOTIONBLUR_ENABLED
|
#if MOTIONBLUR_ENABLED
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user