shadows, textures, resource managers... shaders...
[antikythera] / src / shadow.h
1 #ifndef SHADOW_H_
2 #define SHADOW_H_
3
4 #include <gmath/gmath.h>
5
6 extern bool shadow_pass;
7
8 bool init_shadow(int sz);
9 void destroy_shadow();
10
11 void begin_shadow_pass(const gph::Vec3 &lpos, const gph::Vec3 &ltarg, float lfov, float znear, float zfar);
12 void end_shadow_pass();
13
14 gph::Mat4 get_shadow_matrix();
15 unsigned int get_shadow_tex();
16
17 #endif  // SHADOW_H_