2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_scene_fxglow
;
4 extern GLuint _uniform_scene_fxglow_uMdl
;
5 extern GLuint _uniform_scene_fxglow_uPv
;
6 extern GLuint _uniform_scene_fxglow_uPvmPrev
;
7 extern GLuint _uniform_scene_fxglow_uUvOffset
;
8 extern GLuint _uniform_scene_fxglow_uTexMain
;
9 extern GLuint _uniform_scene_fxglow_uCamera
;
10 extern GLuint _uniform_scene_fxglow_g_world_depth
;
11 extern GLuint _uniform_scene_fxglow_uLightsArray
;
12 extern GLuint _uniform_scene_fxglow_uLightsIndex
;
13 static inline void shader_scene_fxglow_uMdl(m4x3f m
)
15 glUniformMatrix4x3fv(_uniform_scene_fxglow_uMdl
,1,GL_FALSE
,(f32
*)m
);
17 static inline void shader_scene_fxglow_uPv(m4x4f m
)
19 glUniformMatrix4fv(_uniform_scene_fxglow_uPv
,1,GL_FALSE
,(f32
*)m
);
21 static inline void shader_scene_fxglow_uPvmPrev(m4x4f m
)
23 glUniformMatrix4fv(_uniform_scene_fxglow_uPvmPrev
,1,GL_FALSE
,(f32
*)m
);
25 static inline void shader_scene_fxglow_uUvOffset(v2f v
)
27 glUniform2fv(_uniform_scene_fxglow_uUvOffset
,1,v
);
29 static inline void shader_scene_fxglow_uTexMain(int i
)
31 glUniform1i(_uniform_scene_fxglow_uTexMain
,i
);
33 static inline void shader_scene_fxglow_uCamera(v3f v
)
35 glUniform3fv(_uniform_scene_fxglow_uCamera
,1,v
);
37 static inline void shader_scene_fxglow_g_world_depth(int i
)
39 glUniform1i(_uniform_scene_fxglow_g_world_depth
,i
);
41 static inline void shader_scene_fxglow_use(void);
42 static inline void shader_scene_fxglow_use(void)
44 glUseProgram(_shader_scene_fxglow
.id
);