From: Erik Hofman Date: Fri, 26 Jun 2015 07:53:03 +0000 (+0200) Subject: Tie the sun vector to the property tree X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2496bdecfad733bf69c58474939d4a831cc16d46;p=flightgear.git Tie the sun vector to the property tree --- diff --git a/src/Time/light.cxx b/src/Time/light.cxx index 43e44744c..c037657b0 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -176,6 +176,11 @@ void FGLight::bind () { tie(prop,"/rendering/dome/fog/green", SGRawValuePointer(&_fog_color[1])); tie(prop,"/rendering/dome/fog/blue", SGRawValuePointer(&_fog_color[2])); + // Sun vector + tie(prop,"/ephemeris/sun/local/x", SGRawValuePointer(&_sun_vec[0])); + tie(prop,"/ephemeris/sun/local/y", SGRawValuePointer(&_sun_vec[1])); + tie(prop,"/ephemeris/sun/local/z", SGRawValuePointer(&_sun_vec[2])); + // Properties used directly by effects _chromeProps[0] = prop->getNode("/rendering/scene/chrome-light/red", true); _chromeProps[1] = prop->getNode("/rendering/scene/chrome-light/green",