- /* getting material uniform locations: diffuse, specular, specular exponent (strength) */
-
- diff_loc = sprog->get_uniform_location("diffuse");
- spec_loc = sprog->get_uniform_location("specular");
- shin_loc = sprog->get_uniform_location("shininess");
- t_loc = sprog->get_uniform_location("t");
- fog_loc = sprog->get_uniform_location("fog_density");
+ mbuf = gfx_create_uniform_buffer();
+ if(!mbuf->create(sizeof mu)) {
+ fprintf(stderr, "Failed to create uniform buffer.\n");
+ return false;
+ }