2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_scene_terrain
;
4 extern GLuint _uniform_scene_terrain_uMdl
;
5 extern GLuint _uniform_scene_terrain_uPv
;
6 extern GLuint _uniform_scene_terrain_uPvmPrev
;
7 extern GLuint _uniform_scene_terrain_uTexGarbage
;
8 extern GLuint _uniform_scene_terrain_uTexGradients
;
9 extern GLuint _uniform_scene_terrain_uCamera
;
10 extern GLuint _uniform_scene_terrain_uSandColour
;
11 extern GLuint _uniform_scene_terrain_uBlendOffset
;
12 extern GLuint _uniform_scene_terrain_g_world_depth
;
13 extern GLuint _uniform_scene_terrain_uLightsArray
;
14 extern GLuint _uniform_scene_terrain_uLightsIndex
;
15 static inline void shader_scene_terrain_uMdl(m4x3f m
)
17 glUniformMatrix4x3fv(_uniform_scene_terrain_uMdl
,1,GL_FALSE
,(f32
*)m
);
19 static inline void shader_scene_terrain_uPv(m4x4f m
)
21 glUniformMatrix4fv(_uniform_scene_terrain_uPv
,1,GL_FALSE
,(f32
*)m
);
23 static inline void shader_scene_terrain_uPvmPrev(m4x4f m
)
25 glUniformMatrix4fv(_uniform_scene_terrain_uPvmPrev
,1,GL_FALSE
,(f32
*)m
);
27 static inline void shader_scene_terrain_uTexGarbage(int i
)
29 glUniform1i(_uniform_scene_terrain_uTexGarbage
,i
);
31 static inline void shader_scene_terrain_uTexGradients(int i
)
33 glUniform1i(_uniform_scene_terrain_uTexGradients
,i
);
35 static inline void shader_scene_terrain_uCamera(v3f v
)
37 glUniform3fv(_uniform_scene_terrain_uCamera
,1,v
);
39 static inline void shader_scene_terrain_uSandColour(v3f v
)
41 glUniform3fv(_uniform_scene_terrain_uSandColour
,1,v
);
43 static inline void shader_scene_terrain_uBlendOffset(v2f v
)
45 glUniform2fv(_uniform_scene_terrain_uBlendOffset
,1,v
);
47 static inline void shader_scene_terrain_g_world_depth(int i
)
49 glUniform1i(_uniform_scene_terrain_g_world_depth
,i
);
51 static inline void shader_scene_terrain_use(void);
52 static inline void shader_scene_terrain_use(void)
54 glUseProgram(_shader_scene_terrain
.id
);