Ambient Light
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Ambient Light
Is there any way to create ambient light in irrlicht 1.3.1?
this should work, change the values around to get your desired effect
also to set up a light this might be useful
again mess around with the values, the fourth value is the radius ie how wide you want the light
hope that helps
Code: Select all
smgr->setAmbientLight(video::SColor(0,90,75,90));
Code: Select all
smgr->addLightSceneNode ( node = 0, core::vector3df(3, 5, 2),
video::SColorf(1.4f, 1.0f, 1.0f),
300.0f,
-1 );
hope that helps
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm