2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_scene_water
;
4 extern GLuint _uniform_scene_water_uMdl
;
5 extern GLuint _uniform_scene_water_uPv
;
6 extern GLuint _uniform_scene_water_uPvmPrev
;
7 extern GLuint _uniform_scene_water_uTexMain
;
8 extern GLuint _uniform_scene_water_uTexDudv
;
9 extern GLuint _uniform_scene_water_uTexBack
;
10 extern GLuint _uniform_scene_water_uInvRes
;
11 extern GLuint _uniform_scene_water_uTime
;
12 extern GLuint _uniform_scene_water_uCamera
;
13 extern GLuint _uniform_scene_water_uSurfaceY
;
14 extern GLuint _uniform_scene_water_uBoard0
;
15 extern GLuint _uniform_scene_water_uBoard1
;
16 extern GLuint _uniform_scene_water_uShoreColour
;
17 extern GLuint _uniform_scene_water_uOceanColour
;
18 extern GLuint _uniform_scene_water_g_world_depth
;
19 extern GLuint _uniform_scene_water_uLightsArray
;
20 extern GLuint _uniform_scene_water_uLightsIndex
;
21 static inline void shader_scene_water_uMdl(m4x3f m
)
23 glUniformMatrix4x3fv(_uniform_scene_water_uMdl
,1,GL_FALSE
,(f32
*)m
);
25 static inline void shader_scene_water_uPv(m4x4f m
)
27 glUniformMatrix4fv(_uniform_scene_water_uPv
,1,GL_FALSE
,(f32
*)m
);
29 static inline void shader_scene_water_uPvmPrev(m4x4f m
)
31 glUniformMatrix4fv(_uniform_scene_water_uPvmPrev
,1,GL_FALSE
,(f32
*)m
);
33 static inline void shader_scene_water_uTexMain(int i
)
35 glUniform1i(_uniform_scene_water_uTexMain
,i
);
37 static inline void shader_scene_water_uTexDudv(int i
)
39 glUniform1i(_uniform_scene_water_uTexDudv
,i
);
41 static inline void shader_scene_water_uTexBack(int i
)
43 glUniform1i(_uniform_scene_water_uTexBack
,i
);
45 static inline void shader_scene_water_uInvRes(v2f v
)
47 glUniform2fv(_uniform_scene_water_uInvRes
,1,v
);
49 static inline void shader_scene_water_uTime(f32 f
)
51 glUniform1f(_uniform_scene_water_uTime
,f
);
53 static inline void shader_scene_water_uCamera(v3f v
)
55 glUniform3fv(_uniform_scene_water_uCamera
,1,v
);
57 static inline void shader_scene_water_uSurfaceY(f32 f
)
59 glUniform1f(_uniform_scene_water_uSurfaceY
,f
);
61 static inline void shader_scene_water_uBoard0(v3f v
)
63 glUniform3fv(_uniform_scene_water_uBoard0
,1,v
);
65 static inline void shader_scene_water_uBoard1(v3f v
)
67 glUniform3fv(_uniform_scene_water_uBoard1
,1,v
);
69 static inline void shader_scene_water_uShoreColour(v3f v
)
71 glUniform3fv(_uniform_scene_water_uShoreColour
,1,v
);
73 static inline void shader_scene_water_uOceanColour(v3f v
)
75 glUniform3fv(_uniform_scene_water_uOceanColour
,1,v
);
77 static inline void shader_scene_water_g_world_depth(int i
)
79 glUniform1i(_uniform_scene_water_g_world_depth
,i
);
81 static inline void shader_scene_water_use(void);
82 static inline void shader_scene_water_use(void)
84 glUseProgram(_shader_scene_water
.id
);