change shader properties to be vg_msg based
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / particle.h
1 #pragma once
2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_particle;
4 extern GLuint _uniform_particle_uPv;
5 extern GLuint _uniform_particle_uPvPrev;
6 static inline void shader_particle_uPv(m4x4f m)
7 {
8 glUniformMatrix4fv(_uniform_particle_uPv,1,GL_FALSE,(f32*)m);
9 }
10 static inline void shader_particle_uPvPrev(m4x4f m)
11 {
12 glUniformMatrix4fv(_uniform_particle_uPvPrev,1,GL_FALSE,(f32*)m);
13 }
14 static inline void shader_particle_use(void);
15 static inline void shader_particle_use(void)
16 {
17 glUseProgram(_shader_particle.id);
18 }