2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_scene_standard
;
4 extern GLuint _uniform_scene_standard_uMdl
;
5 extern GLuint _uniform_scene_standard_uPv
;
6 extern GLuint _uniform_scene_standard_uPvmPrev
;
7 extern GLuint _uniform_scene_standard_uTexGarbage
;
8 extern GLuint _uniform_scene_standard_uTexMain
;
9 extern GLuint _uniform_scene_standard_uCamera
;
10 extern GLuint _uniform_scene_standard_uPlane
;
11 extern GLuint _uniform_scene_standard_g_world_depth
;
12 extern GLuint _uniform_scene_standard_uLightsArray
;
13 extern GLuint _uniform_scene_standard_uLightsIndex
;
14 static inline void shader_scene_standard_uMdl(m4x3f m
)
16 glUniformMatrix4x3fv(_uniform_scene_standard_uMdl
,1,GL_FALSE
,(f32
*)m
);
18 static inline void shader_scene_standard_uPv(m4x4f m
)
20 glUniformMatrix4fv(_uniform_scene_standard_uPv
,1,GL_FALSE
,(f32
*)m
);
22 static inline void shader_scene_standard_uPvmPrev(m4x4f m
)
24 glUniformMatrix4fv(_uniform_scene_standard_uPvmPrev
,1,GL_FALSE
,(f32
*)m
);
26 static inline void shader_scene_standard_uTexGarbage(int i
)
28 glUniform1i(_uniform_scene_standard_uTexGarbage
,i
);
30 static inline void shader_scene_standard_uTexMain(int i
)
32 glUniform1i(_uniform_scene_standard_uTexMain
,i
);
34 static inline void shader_scene_standard_uCamera(v3f v
)
36 glUniform3fv(_uniform_scene_standard_uCamera
,1,v
);
38 static inline void shader_scene_standard_uPlane(v4f v
)
40 glUniform4fv(_uniform_scene_standard_uPlane
,1,v
);
42 static inline void shader_scene_standard_g_world_depth(int i
)
44 glUniform1i(_uniform_scene_standard_g_world_depth
,i
);
46 static inline void shader_scene_standard_use(void);
47 static inline void shader_scene_standard_use(void)
49 glUseProgram(_shader_scene_standard
.id
);