mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 15:09:19 +02:00
WIP
This commit is contained in:
24
shaders/ecs_particle.frag
Normal file
24
shaders/ecs_particle.frag
Normal file
@@ -0,0 +1,24 @@
|
||||
in vec4 f_color;
|
||||
in vec4 f_pos;
|
||||
|
||||
#include <common>
|
||||
#include <apply_fog.glsl>
|
||||
#include <tonemapping.glsl>
|
||||
|
||||
layout(location = 0) out vec4 out_color;
|
||||
#if MOTIONBLUR_ENABLED
|
||||
layout(location = 1) out vec4 out_motion;
|
||||
#endif
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 col = f_color;
|
||||
#if POSTFX_ENABLED
|
||||
out_color = vec4(apply_fog(col.rgb), col.a);
|
||||
#else
|
||||
out_color = tonemap(vec4(apply_fog(col.rgb), col.a));
|
||||
#endif
|
||||
#if MOTIONBLUR_ENABLED
|
||||
out_motion = vec4(0.0);
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user