2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_trail
;
4 extern GLuint _uniform_trail_uPv
;
5 extern GLuint _uniform_trail_uPvPrev
;
6 extern GLuint _uniform_trail_uColour
;
7 static inline void shader_trail_uPv(m4x4f m
)
9 glUniformMatrix4fv(_uniform_trail_uPv
,1,GL_FALSE
,(f32
*)m
);
11 static inline void shader_trail_uPvPrev(m4x4f m
)
13 glUniformMatrix4fv(_uniform_trail_uPvPrev
,1,GL_FALSE
,(f32
*)m
);
15 static inline void shader_trail_uColour(v4f v
)
17 glUniform4fv(_uniform_trail_uColour
,1,v
);
19 static inline void shader_trail_use(void);
20 static inline void shader_trail_use(void)
22 glUseProgram(_shader_trail
.id
);