- /* 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");
- fog_loc = sprog->get_uniform_location("fog_density");
-
- /* uniform locations for matrices */
+ svbuf = gfx_create_uniform_buffer();
+ if(!svbuf->create(sizeof svu)) {
+ fprintf(stderr, "Failed to create uniform buffer.\n");
+ return false;
+ }