mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
20 lines
361 B
GLSL
20 lines
361 B
GLSL
#version 330
|
|
|
|
#include <common>
|
|
|
|
in vec4 f_clip_pos;
|
|
in vec4 f_clip_future_pos;
|
|
|
|
void main()
|
|
{
|
|
gl_FragData[0] = param[0];
|
|
#ifdef MOTIONBLUR_ENABLED
|
|
{
|
|
vec2 a = (f_clip_future_pos.xy / f_clip_future_pos.w) * 0.5 + 0.5;;
|
|
vec2 b = (f_clip_pos.xy / f_clip_pos.w) * 0.5 + 0.5;;
|
|
|
|
gl_FragData[1] = vec4(a - b, 0.0f, 0.0f);
|
|
}
|
|
#endif
|
|
}
|