change shader properties to be vg_msg based
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / scene_foliage.h
1 #pragma once
2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_scene_foliage;
4 extern GLuint _uniform_scene_foliage_uMdl;
5 extern GLuint _uniform_scene_foliage_uPv;
6 extern GLuint _uniform_scene_foliage_uPvmPrev;
7 extern GLuint _uniform_scene_foliage_uTime;
8 extern GLuint _uniform_scene_foliage_uTexGarbage;
9 extern GLuint _uniform_scene_foliage_uTexMain;
10 extern GLuint _uniform_scene_foliage_uCamera;
11 extern GLuint _uniform_scene_foliage_uPlane;
12 extern GLuint _uniform_scene_foliage_g_world_depth;
13 extern GLuint _uniform_scene_foliage_uLightsArray;
14 extern GLuint _uniform_scene_foliage_uLightsIndex;
15 static inline void shader_scene_foliage_uMdl(m4x3f m)
16 {
17 glUniformMatrix4x3fv(_uniform_scene_foliage_uMdl,1,GL_FALSE,(f32*)m);
18 }
19 static inline void shader_scene_foliage_uPv(m4x4f m)
20 {
21 glUniformMatrix4fv(_uniform_scene_foliage_uPv,1,GL_FALSE,(f32*)m);
22 }
23 static inline void shader_scene_foliage_uPvmPrev(m4x4f m)
24 {
25 glUniformMatrix4fv(_uniform_scene_foliage_uPvmPrev,1,GL_FALSE,(f32*)m);
26 }
27 static inline void shader_scene_foliage_uTime(f32 f)
28 {
29 glUniform1f(_uniform_scene_foliage_uTime,f);
30 }
31 static inline void shader_scene_foliage_uTexGarbage(int i)
32 {
33 glUniform1i(_uniform_scene_foliage_uTexGarbage,i);
34 }
35 static inline void shader_scene_foliage_uTexMain(int i)
36 {
37 glUniform1i(_uniform_scene_foliage_uTexMain,i);
38 }
39 static inline void shader_scene_foliage_uCamera(v3f v)
40 {
41 glUniform3fv(_uniform_scene_foliage_uCamera,1,v);
42 }
43 static inline void shader_scene_foliage_uPlane(v4f v)
44 {
45 glUniform4fv(_uniform_scene_foliage_uPlane,1,v);
46 }
47 static inline void shader_scene_foliage_g_world_depth(int i)
48 {
49 glUniform1i(_uniform_scene_foliage_g_world_depth,i);
50 }
51 static inline void shader_scene_foliage_use(void);
52 static inline void shader_scene_foliage_use(void)
53 {
54 glUseProgram(_shader_scene_foliage.id);
55 }