light from upper-left

This commit is contained in:
David Rose 2008-06-04 22:59:28 +00:00
parent 6e1c76ede5
commit d3ded32deb

View File

@ -1126,9 +1126,11 @@ setup_lights() {
AmbientLight *alight = new AmbientLight("ambient"); AmbientLight *alight = new AmbientLight("ambient");
alight->set_color(Colorf(0.2f, 0.2f, 0.2f, 1.0f)); alight->set_color(Colorf(0.2f, 0.2f, 0.2f, 1.0f));
DirectionalLight *dlight = new DirectionalLight("directional"); DirectionalLight *dlight = new DirectionalLight("directional");
dlight->set_color(Colorf(0.8f, 0.8f, 0.8f, 1.0f));
_alight = light_group.attach_new_node(alight); _alight = light_group.attach_new_node(alight);
_dlight = light_group.attach_new_node(dlight); _dlight = light_group.attach_new_node(dlight);
_dlight.set_hpr(-10, -20, 0);
_got_lights = true; _got_lights = true;
} }