forked from speed-dreams/speed-dreams-code
update SDRender
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5434 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 320bc77000550f44ca1a0fdd518bc40c495755bd Former-commit-id: 4d0aa314a37f1491ae96105077ce1431d1c10f1e
This commit is contained in:
parent
8fb4ef3cf5
commit
90dc6c6436
1 changed files with 3 additions and 1 deletions
|
@ -215,9 +215,11 @@ void SDRender::Init(tTrack *track)
|
|||
thesky->set_visibility( SDVisibility ); // Visibility in meters
|
||||
|
||||
thesky->reposition( viewPos, 0, 0);
|
||||
UpdateLight();
|
||||
sol_angle = (float)thesky->getSA();
|
||||
moon_angle = (float)thesky->getMA();
|
||||
thesky->repaint(SkyColor, FogColor, CloudsColor, sol_angle, moon_angle, NPlanets,
|
||||
APlanetsData, NStars, AStarsData);
|
||||
UpdateLight();
|
||||
|
||||
osg::ref_ptr<osg::Group> sceneGroup = new osg::Group;
|
||||
osg::ref_ptr<osg::Group> mRoot = new osg::Group;
|
||||
|
|
Loading…
Reference in a new issue