mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
light from upper-left
This commit is contained in:
parent
6e1c76ede5
commit
d3ded32deb
@ -1126,9 +1126,11 @@ setup_lights() {
|
||||
AmbientLight *alight = new AmbientLight("ambient");
|
||||
alight->set_color(Colorf(0.2f, 0.2f, 0.2f, 1.0f));
|
||||
DirectionalLight *dlight = new DirectionalLight("directional");
|
||||
dlight->set_color(Colorf(0.8f, 0.8f, 0.8f, 1.0f));
|
||||
|
||||
_alight = light_group.attach_new_node(alight);
|
||||
_dlight = light_group.attach_new_node(dlight);
|
||||
_dlight.set_hpr(-10, -20, 0);
|
||||
|
||||
_got_lights = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user