2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_scene_cubemapped
;
4 extern GLuint _uniform_scene_cubemapped_uMdl
;
5 extern GLuint _uniform_scene_cubemapped_uPv
;
6 extern GLuint _uniform_scene_cubemapped_uPvmPrev
;
7 extern GLuint _uniform_scene_cubemapped_uTexGarbage
;
8 extern GLuint _uniform_scene_cubemapped_uTexMain
;
9 extern GLuint _uniform_scene_cubemapped_uTexCubemap
;
10 extern GLuint _uniform_scene_cubemapped_uCamera
;
11 extern GLuint _uniform_scene_cubemapped_uPlane
;
12 extern GLuint _uniform_scene_cubemapped_uColour
;
13 extern GLuint _uniform_scene_cubemapped_g_world_depth
;
14 extern GLuint _uniform_scene_cubemapped_uLightsArray
;
15 extern GLuint _uniform_scene_cubemapped_uLightsIndex
;
16 static inline void shader_scene_cubemapped_uMdl(m4x3f m
)
18 glUniformMatrix4x3fv(_uniform_scene_cubemapped_uMdl
,1,GL_FALSE
,(f32
*)m
);
20 static inline void shader_scene_cubemapped_uPv(m4x4f m
)
22 glUniformMatrix4fv(_uniform_scene_cubemapped_uPv
,1,GL_FALSE
,(f32
*)m
);
24 static inline void shader_scene_cubemapped_uPvmPrev(m4x4f m
)
26 glUniformMatrix4fv(_uniform_scene_cubemapped_uPvmPrev
,1,GL_FALSE
,(f32
*)m
);
28 static inline void shader_scene_cubemapped_uTexGarbage(int i
)
30 glUniform1i(_uniform_scene_cubemapped_uTexGarbage
,i
);
32 static inline void shader_scene_cubemapped_uTexMain(int i
)
34 glUniform1i(_uniform_scene_cubemapped_uTexMain
,i
);
36 static inline void shader_scene_cubemapped_uTexCubemap(int i
)
38 glUniform1i(_uniform_scene_cubemapped_uTexCubemap
,i
);
40 static inline void shader_scene_cubemapped_uCamera(v3f v
)
42 glUniform3fv(_uniform_scene_cubemapped_uCamera
,1,v
);
44 static inline void shader_scene_cubemapped_uPlane(v4f v
)
46 glUniform4fv(_uniform_scene_cubemapped_uPlane
,1,v
);
48 static inline void shader_scene_cubemapped_uColour(v4f v
)
50 glUniform4fv(_uniform_scene_cubemapped_uColour
,1,v
);
52 static inline void shader_scene_cubemapped_g_world_depth(int i
)
54 glUniform1i(_uniform_scene_cubemapped_g_world_depth
,i
);
56 static inline void shader_scene_cubemapped_use(void);
57 static inline void shader_scene_cubemapped_use(void)
59 glUseProgram(_shader_scene_cubemapped
.id
);