Save a costly SGVec3d::fromGeod() calculation
This commit is contained in:
parent
2d2710d5da
commit
fe834dedfb
1 changed files with 2 additions and 1 deletions
|
@ -611,7 +611,8 @@ FGRenderer::update( bool refresh_camera_settings ) {
|
|||
}
|
||||
|
||||
SGSkyState sstate;
|
||||
sstate.pos = current__view->getPosition();
|
||||
sstate.pos = current__view->getViewPosition();
|
||||
sstate.pos_geod = current__view->getPosition();
|
||||
sstate.ori = current__view->getViewOrientation();
|
||||
sstate.spin = l->get_sun_rotation();
|
||||
sstate.gst = globals->get_time_params()->getGst();
|
||||
|
|
Loading…
Reference in a new issue