Fix gamma, add Glad, error if glad is compiled with emscripten
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
float *generate_data_surface(unsigned int, unsigned char *);
|
||||
float *generate_normals_surface(float *, unsigned char);
|
||||
|
||||
struct projection projection = {.x = 3, .y=1, .z=2, .w=0 };
|
||||
struct projection projection = {.x = 0, .y=1, .z=2, .w=3 };
|
||||
|
||||
const char *wname = "manigraph: manifold grapher";
|
||||
|
||||
@@ -65,6 +65,7 @@ void main_loop(void)
|
||||
|
||||
load_uint_to_shader( shader, "i", animate_index-1 );
|
||||
load_uint_to_shader( shader_plain, "i", animate_index-1 );
|
||||
|
||||
load_float_to_shader( shader, "angle", angle);
|
||||
load_float_to_shader( shader_plain, "angle", angle);
|
||||
}
|
||||
@@ -117,7 +118,7 @@ int main(void)
|
||||
mlog("[CONTEXT] Error al inicializar...\n");
|
||||
goto error_context;
|
||||
}
|
||||
set_clean_color_context(0xFB, 0xEA, 0xEB);
|
||||
set_clean_color_context(0xFF, 0xFF, 0xFF);
|
||||
}
|
||||
|
||||
mlog("[TEXTURE] Inicializando...\n");
|
||||
@@ -184,7 +185,8 @@ int main(void)
|
||||
|
||||
mlog("[MAIN LOOP] Inicializando...\n");
|
||||
#ifdef EMSCRIPTEN
|
||||
emscripten_set_main_loop(&main_loop, 0, 1);
|
||||
emscripten_set_main_loop(&main_loop, 60, 1);
|
||||
return 0;
|
||||
#else
|
||||
while (is_open_window(window))
|
||||
main_loop();
|
||||
|
||||
Reference in New Issue
Block a user