GL::Lighting lighting;
GL::Light light;
- light.set_position(GL::Vector4(0, 2, 3, 0));
+ light.set_position(GL::Vector4(0, -0.781, 0.625, 0));
lighting.attach(0, light);
- GL::Bind bind_light(lighting);
-
GL::Texturing texturing;
texturing.attach(0, tex1);
texturing.attach(1, tex2);
{
GL::Bind bind_depth(GL::DepthTest::lequal());
GL::Renderer renderer(0);
+ renderer.set_lighting(&lighting);
renderer.set_material(&mat);
renderer.set_texturing(&texturing);
renderer.add_shader_data(progdata);