revision 2
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / trail.h
1 #pragma once
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)
8 {
9 glUniformMatrix4fv(_uniform_trail_uPv,1,GL_FALSE,(f32*)m);
10 }
11 static inline void shader_trail_uPvPrev(m4x4f m)
12 {
13 glUniformMatrix4fv(_uniform_trail_uPvPrev,1,GL_FALSE,(f32*)m);
14 }
15 static inline void shader_trail_uColour(v4f v)
16 {
17 glUniform4fv(_uniform_trail_uColour,1,v);
18 }
19 static inline void shader_trail_use(void);
20 static inline void shader_trail_use(void)
21 {
22 glUseProgram(_shader_trail.id);
23 }