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
)
17 glUniformMatrix4x3fv(_uniform_scene_foliage_uMdl
,1,GL_FALSE
,(f32
*)m
);
19 static inline void shader_scene_foliage_uPv(m4x4f m
)
21 glUniformMatrix4fv(_uniform_scene_foliage_uPv
,1,GL_FALSE
,(f32
*)m
);
23 static inline void shader_scene_foliage_uPvmPrev(m4x4f m
)
25 glUniformMatrix4fv(_uniform_scene_foliage_uPvmPrev
,1,GL_FALSE
,(f32
*)m
);
27 static inline void shader_scene_foliage_uTime(f32 f
)
29 glUniform1f(_uniform_scene_foliage_uTime
,f
);
31 static inline void shader_scene_foliage_uTexGarbage(int i
)
33 glUniform1i(_uniform_scene_foliage_uTexGarbage
,i
);
35 static inline void shader_scene_foliage_uTexMain(int i
)
37 glUniform1i(_uniform_scene_foliage_uTexMain
,i
);
39 static inline void shader_scene_foliage_uCamera(v3f v
)
41 glUniform3fv(_uniform_scene_foliage_uCamera
,1,v
);
43 static inline void shader_scene_foliage_uPlane(v4f v
)
45 glUniform4fv(_uniform_scene_foliage_uPlane
,1,v
);
47 static inline void shader_scene_foliage_g_world_depth(int i
)
49 glUniform1i(_uniform_scene_foliage_g_world_depth
,i
);
51 static inline void shader_scene_foliage_use(void);
52 static inline void shader_scene_foliage_use(void)
54 glUseProgram(_shader_scene_foliage
.id
);