- // First create a simplified shader for rendering the shadow map
- GL::ProgramBuilder::StandardFeatures features;
- features.custom = cube_variables;
- GL::ProgramBuilder(features).add_shaders(cube_shadow_shprog);
- cube_shadow_shprog.bind_attribute(7, "sphere_coord");
- cube_shadow_shprog.link();
-
- // Then add the rest of the features for normal rendering
- features.lighting = true;
- features.specular = true;
- features.material = true;
- features.shadow = true;
- features.reflection = true;
- GL::ProgramBuilder(features).add_shaders(cube_shprog);
- cube_shprog.bind_attribute(7, "sphere_coord");
- cube_shprog.link();
-