A group node which adds a silver-lining sky and will light all Children with the proper lighting parameters.
More...
|
| | DtSilverliningGroup (DtDe &de) |
| | CTOR. More...
|
| |
| virtual | ~DtSilverliningGroup () |
| | DTOR. More...
|
| |
| DtDe & | getDe () |
| |
| virtual void | setGenerateCubeMaps (bool enabled) |
| | Enable auto-generation of cube maps from the sky. More...
|
| |
| void | setCubeMapGenerationDistanceThreshold (double threshold) |
| | Set the distance threshold for re-generating cube maps. More...
|
| |
| virtual unsigned int | getCubeMap (const osg::ref_ptr< const osg::Camera > &camera) const |
| | Retrieve a texture ID for a cube map containing the local sky for a given camera. More...
|
| |
| virtual unsigned int | getPrimaryCubeMap () const |
| | Retrieve a texture ID for a cube map containing the local sky for general use. More...
|
| |
| virtual void | installIntoChannel (DtChannel *) |
| |
| virtual void | applyFog (osg::ref_ptr< const osg::Camera > camera) |
| | Apply fog for a given camera. More...
|
| |
| virtual void | deleteGeods () |
| | Tell the silver-lining group to delete its specific children. More...
|
| |
| virtual void | setGeocentricMode (bool mode) |
| | Set the group to be in geocentric mode. More...
|
| |
| virtual bool | geocentricMode () const |
| | Get the simulation are in geocentric mode. More...
|
| |
| virtual void | setHiResCumulus (bool enabled) |
| | Sets use of high-resolution (lower performance) cumulus clouds. More...
|
| |
| virtual bool | hiResCumulus () const |
| | Gets use of high-resolution cumulus clouds. More...
|
| |
| virtual void | setLensFlare (bool enabled) |
| | Set use of lens flare effects. More...
|
| |
| virtual bool | lensFlare () const |
| | Get the use of lens flare effects. More...
|
| |
| virtual void | setCrepuscularRays (bool enabled) |
| | Set use of crepuscular rays (sun rays) effects. More...
|
| |
| virtual bool | crepuscularRays () const |
| | Get the use of crepuscular rays (sun rays) effects. More...
|
| |
| virtual void | setForcedMoonPhase (float phase) |
| | Forces the moon phase regardless of simulated date. 0 = new moon, 1.0 = full moon. More...
|
| |
| virtual void | clearForcedMoonPhase () |
| | Clears a forced moon phase and goes back to simulating it based on the date. More...
|
| |
| virtual bool | moonPhaseIsForced () const |
| | Retrieves whether a forced moon phase is being used. More...
|
| |
| virtual float | forcedMoonPhase () const |
| | Retrieves the forced moon phase (if any) More...
|
| |
| virtual void | setForcedSunAndMoon (double sunLat, double sunLon, double moonLat, double moonLon, bool horizonCoords=true) |
| | Force latitude and longitude of the sun & moon to specified positions, using horizon (default) or ecliptic coordinates Note latitudes and longitudes are in radians. More...
|
| |
| virtual void | clearForcedSunAndMoon () |
| |
| virtual bool | sunAndMoonPositionIsForced () const |
| | Retrieves whether a forced sun and moon is being used. More...
|
| |
| virtual void | getForcedSunAndMoonPosition (double &sunLat, double &sunLon, double &moonLat, double &moonLon, bool &horizonCoords) const |
| | Retrieves the forced sun an moon position (if any) More...
|
| |
| *virtual void | setLightPollution (double Wm2) |
| | Sets the simulated amount of nighttime light pollution, in watts per square meter. More...
|
| |
| virtual double | lightPollution () const |
| | Gets the simulated light pollution in watts per square meter. More...
|
| |
| virtual void | setDateAndTime (unsigned short year, unsigned char month, unsigned char day, unsigned char hour, unsigned char minutes, double seconds, bool observeDaylightSavings) |
| | Setup the date and time of silver lining. More...
|
| |
| virtual void | updateTime () |
| | Update the time in the atmosphere. More...
|
| |
| virtual void | setLocation (const DtVector &location) |
| | Set the location using a local coordinate (it will be converted to the global coordinate using the current coordinate system). More...
|
| |
| virtual void | update (const osg::Matrix &m) |
| | Update the lighting. More...
|
| |
| virtual void | update2D (const osg::Matrix &m) |
| | Update the lighting in 2D mode. More...
|
| |
| virtual void | updateConditions (DtOsgSkyObject *skyObject) |
| | Update all conditions from a DtOsgSkyObject. More...
|
| |
| virtual void | removeCloudLayer (DtCloudLayerId layerId) |
| | Remove a cloud layer. More...
|
| |
| virtual void | removeCloudLayers () |
| | Remove all cloud layers. More...
|
| |
| virtual void | setFogColor (const osg::Vec4f &rgbA) |
| | Set the fog color (which will be lit based on time of day) when visibility gets below the fog threshold distance. More...
|
| |
| virtual void | setFogHeight (float height) |
| | Sets the simulated height of the fog on the skybox only. More...
|
| |
| virtual void | setFogBlend (const osg::Vec4f &rgbA, float density) |
| | Set parameters to blend with the fog specified in setFogColor. More...
|
| |
| virtual void | setFogOverride (osg::ref_ptr< const osg::Camera > camera, const osg::Vec4f &rgbA, float density) |
| | Override all fog computations to the given fog color & density. More...
|
| |
| virtual void | setFogThresholdDistance (float distance) |
| | Sets the visibility distance at which fog effects kick in instead of haze. More...
|
| |
| virtual void | setHorizonColor (const osg::Vec4f &rgbA) |
| | Set the color of the sky at and below the horizon. More...
|
| |
| virtual void | setCubeMapDirty () |
| | Set the cube map dirty flag. More...
|
| |
| virtual void | setUse16BitEnviroMap (bool flag) |
| | Set the silverlining atmosphere to use a 16 bit environment map. More...
|
| |
| virtual bool | getUse16BitEnviroMap () |
| | Get whether or not the atmosphere should use a 16 bit environment map. More...
|
| |
| virtual void | setUsingSensorFXShader (bool flag) |
| | Set the flag that silverlining is using the sensorFX shaders. More...
|
| |
| virtual bool | getUsingSensorFXShader () |
| | Get the flag that silverlining is using the sensorFX shaders. More...
|
| |
| virtual void | clearHorizonColor () |
| | Clear usage of a set horizon color. More...
|
| |
| virtual void | clearFogOverride (osg::ref_ptr< const osg::Camera > camera) |
| | Undo any override for fog previously set. More...
|
| |
| virtual void | clearFogOverrideForAllCameras (void) |
| |
| void | setUseGlobalTimeZone (bool b) |
| | If set to true at next update use UTC time to position sun/moon, else use local timezone based on the position of the observer Non virtual, called in the CTOR. More...
|
| |
| virtual bool | useGlobalTimeZone () const |
| | Get the current value of using GMT time for observer. More...
|
| |
| virtual float | getSunAlpha () const |
| | Gets the alpha value of the sun disc (affected by fog) More...
|
| |
| virtual void | setDrawSunAndMoonIntoEnvMap (bool draw) |
| | Sets whether the sun and moon are drawn into the environment map for reflections. More...
|
| |
| virtual bool | drawSunAndMoonIntoEnvMap () const |
| | Gets whether the sun and moon are drawn into the environment map for reflections. More...
|
| |
| virtual float | getSkyCoverage () const |
| | Retrieve the percentage of sky occluded by clouds, above the current camera position. More...
|
| |
| virtual void | addCirroCumulus (DtCloudLayerId layerId, const DtVector &position, float orientation, const DtVector &bounds, bool infinite, bool relative, bool fadeAtAltitude, bool altitudeIsHAT) |
| | Add cirrus clouds to the scene. More...
|
| |
| virtual void | addCirrusFibratus (DtCloudLayerId layerId, const DtVector &position, float orientation, const DtVector &bounds, bool infinite, bool relative, bool fadeAtAltitude, bool altitudeIsHAT) |
| |
| virtual void | addNimbostratus (DtCloudLayerId layerId, const DtVector &position, float orientation, const DtVector &bounds, double density, bool infinite, bool relative, bool fadeAtAltitude, bool altitudeIsHAT) |
| |
| virtual void | addCumulusMediocris (DtCloudLayerId layerId, const DtVector &position, float orientation, float cornerRadius, const DtVector &bounds, double density, bool infinite, bool relative, bool fadeAtAltitude, bool altitudeIsHAT) |
| |
| virtual void | addCumulusCongestus (DtCloudLayerId layerId, const DtVector &position, float orientation, float cornerRadius, const DtVector &bounds, double density, bool infinite, bool relative, bool fadeAtAltitude, bool altitudeIsHAT) |
| |
| virtual void | addCumulonimbusCappilatus (DtCloudLayerId layerId, const DtVector &position, float orientation, const DtVector &bounds, double density, bool relative, bool fadeAtAltitude, bool altitudeIsHAT) |
| |
| virtual void | addStratocumulus (DtCloudLayerId layerId, const DtVector &position, float orientation, const DtVector &bounds, double density, bool infinite, bool relative, bool fadeAtAltitude, bool altitudeIsHAT) |
| |
| virtual void | addGroundFog (DtCloudLayerId layerId, const DtVector &position, float orientation, float cornerRadius, const DtVector &bounds, double density, bool infinite, bool relative, bool fadeAtAltitude, bool altitudeIsHAT) |
| |
| virtual void | setCloudLayerEnabled (DtCloudLayerId layerId, bool enabled) |
| |
| virtual void | setCloudLayerPositionAndOrientation (DtCloudLayerId layerId, const DtVector &position, float orientation) |
| |
| virtual void | setWind (double directionDEN, double minAltitude, double maxAltitude, double velocity) |
| |
| virtual void | setAirTurbidity (float turbidity) |
| |
| virtual void | setVisibleDistance (float distance) |
| |
| virtual float | getVisibleDistance () const |
| |
| virtual void | createAtmosphere () |
| |
| virtual void | destroyAtmosphere () |
| |
| virtual bool | getFailedInit () |
| |
| virtual void | addRain (float mmPerHour, bool global) |
| |
| virtual void | addSleet (float mmPerHour, bool global) |
| |
| virtual void | addSnow (float mmPerHour, bool global, bool wet) |
| |
| virtual void | clearAllPrecipitation () |
| |
| virtual void | realizeLayers () |
| |
| virtual SilverLining::Atmosphere * | findAtmosphere () |
| |
virtual const
SilverLining::Atmosphere * | findAtmosphere () const |
| |
| DtDe & | getDtDe () |
| |
| virtual void | getGMTDateTime (long &julianDate, double &GMTTod) |
| |
| virtual osg::Node * | getCloudsNode () |
| |
| virtual osg::Node * | getSkyNode () |
| |
| virtual void | setSunMoonEnabled (bool drawSunMoon) |
| |
| virtual bool | getSunMoonEnabled () |
| |
| virtual void | setStarsEnabled (bool drawStars) |
| |
| virtual bool | getStarsEnabled () |
| |
| virtual void | enableLighting (osg::ref_ptr< osg::Camera > camera, bool enable) |
| |
| void | setEnableHDR (bool enable) |
| | allows a plugin to turn on or off HDR in silverlining Non virtual, called in the CTOR. More...
|
| |
| virtual osg::LightSource * | skyLight () |
| | getter for skyLight so Triton can use it for it's lighting More...
|
| |
| virtual const CloudLayerMap & | cloudLayerMap () const |
| |
| virtual osg::Vec3f & | getLastUpVector () |
| |
| virtual void | fillCrepuscularRaysParameters (DtCrepuscularRaysParameters ¶ms) const |
| | fills out some uniforms based on SL parameters for crepuscular rays More...
|
| |
| virtual void | updateImGuiAndGetModifiersOffOfImgGui (DtCrepuscularRaysModifiers &modifiers, float r, float g, float b, float sunPosX, float sunPosY, float sunPosZ, float exposure) const |
| | fills out some uniforms based on SL parameters for crepuscular rays More...
|
| |
| virtual void | slot_windowToBeDestroyed (DtWindow *window) |
| | slot for when a window is about to be destroyed so we can let silverlining know to clean up the VAO's More...
|
| |
| virtual void | addGraphicsContextIfNecessary (osg::GraphicsContext *key) |
| | gets the current graphics context handle and stores it in a map with the osg GraphicsContext so we can clean up VAO's correctly needs to have the osg::GraphicsContext be the current active context so it should really only be called from a drawImplemenation() More...
|
| |
A group node which adds a silver-lining sky and will light all Children with the proper lighting parameters.