code cleanup
parent
47e0d6c969
commit
687993ef40
|
@ -2520,8 +2520,8 @@ handle program;
|
||||||
mesh_t geometry;
|
mesh_t geometry;
|
||||||
cubemap_t cubemap;
|
cubemap_t cubemap;
|
||||||
int flags;
|
int flags;
|
||||||
unsigned framebuffers[6];
|
int framebuffers[6];
|
||||||
unsigned textures[6];
|
int textures[6];
|
||||||
unsigned char *pixels;
|
unsigned char *pixels;
|
||||||
} skybox_t;
|
} skybox_t;
|
||||||
skybox_t skybox(const char *panorama_or_cubemap_folder, int flags);
|
skybox_t skybox(const char *panorama_or_cubemap_folder, int flags);
|
||||||
|
|
|
@ -16769,8 +16769,8 @@ typedef struct skybox_t {
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
// mie
|
// mie
|
||||||
unsigned framebuffers[6];
|
int framebuffers[6];
|
||||||
unsigned textures[6];
|
int textures[6];
|
||||||
unsigned char *pixels;
|
unsigned char *pixels;
|
||||||
} skybox_t;
|
} skybox_t;
|
||||||
|
|
||||||
|
@ -342409,7 +342409,7 @@ skybox_t skybox(const char *asset, int flags) {
|
||||||
|
|
||||||
void skybox_mie_calc_sh(skybox_t *sky) {
|
void skybox_mie_calc_sh(skybox_t *sky) {
|
||||||
unsigned WIDTH = 512, HEIGHT = 512;
|
unsigned WIDTH = 512, HEIGHT = 512;
|
||||||
unsigned last_fb;
|
int last_fb;
|
||||||
int vp[4];
|
int vp[4];
|
||||||
glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &last_fb);
|
glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &last_fb);
|
||||||
glGetIntegerv(GL_VIEWPORT, vp);
|
glGetIntegerv(GL_VIEWPORT, vp);
|
||||||
|
|
|
@ -2402,7 +2402,7 @@ skybox_t skybox(const char *asset, int flags) {
|
||||||
|
|
||||||
void skybox_mie_calc_sh(skybox_t *sky) {
|
void skybox_mie_calc_sh(skybox_t *sky) {
|
||||||
unsigned WIDTH = 512, HEIGHT = 512;
|
unsigned WIDTH = 512, HEIGHT = 512;
|
||||||
unsigned last_fb;
|
int last_fb;
|
||||||
int vp[4];
|
int vp[4];
|
||||||
glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &last_fb);
|
glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &last_fb);
|
||||||
glGetIntegerv(GL_VIEWPORT, vp);
|
glGetIntegerv(GL_VIEWPORT, vp);
|
||||||
|
|
|
@ -614,8 +614,8 @@ typedef struct skybox_t {
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
// mie
|
// mie
|
||||||
unsigned framebuffers[6];
|
int framebuffers[6];
|
||||||
unsigned textures[6];
|
int textures[6];
|
||||||
unsigned char *pixels;
|
unsigned char *pixels;
|
||||||
} skybox_t;
|
} skybox_t;
|
||||||
|
|
||||||
|
|
|
@ -13311,7 +13311,7 @@ skybox_t skybox(const char *asset, int flags) {
|
||||||
|
|
||||||
void skybox_mie_calc_sh(skybox_t *sky) {
|
void skybox_mie_calc_sh(skybox_t *sky) {
|
||||||
unsigned WIDTH = 512, HEIGHT = 512;
|
unsigned WIDTH = 512, HEIGHT = 512;
|
||||||
unsigned last_fb;
|
int last_fb;
|
||||||
int vp[4];
|
int vp[4];
|
||||||
glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &last_fb);
|
glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &last_fb);
|
||||||
glGetIntegerv(GL_VIEWPORT, vp);
|
glGetIntegerv(GL_VIEWPORT, vp);
|
||||||
|
|
|
@ -2852,8 +2852,8 @@ typedef struct skybox_t {
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
// mie
|
// mie
|
||||||
unsigned framebuffers[6];
|
int framebuffers[6];
|
||||||
unsigned textures[6];
|
int textures[6];
|
||||||
unsigned char *pixels;
|
unsigned char *pixels;
|
||||||
} skybox_t;
|
} skybox_t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue