#include <llsky.h>
Definition at line 53 of file llsky.h.
LLSky::LLSky | ( | ) |
Definition at line 73 of file llsky.cpp.
References FALSE, mFogColor, mLightingGeneration, mOverrideSimSunPosition, mSunPhase, mUpdatedThisFrame, LLColor4::mV, TRUE, VALPHA, VBLUE, VGREEN, and VRED.
void LLSky::init | ( | const LLVector3 & | sun_direction | ) |
Definition at line 285 of file llsky.cpp.
References LLPipeline::addObject(), LLViewerObjectList::createObjectViewer(), gAgent, LLPointer< Type >::get(), LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLAgent::getRegion(), LLControlGroup::getVector3(), gObjectList, gPipeline, gSavedSettings, LLViewerObject::LL_VO_GROUND, LLViewerObject::LL_VO_SKY, LLViewerObject::LL_VO_WL_SKY, mOverrideSimSunPosition, mSunDefaultPosition, mUpdatedThisFrame, mVOGroundp, mVOSkyp, mVOWLSkyp, setFogRatio(), setSunDirection(), TRUE, and LLVector3::zero.
Referenced by idle_startup().
void LLSky::free | ( | ) |
void LLSky::cleanup | ( | ) |
Definition at line 91 of file llsky.cpp.
References mVOGroundp, mVOSkyp, mVOWLSkyp, and NULL.
Referenced by LLViewerWindow::~LLViewerWindow().
void LLSky::setOverrideSun | ( | BOOL | override | ) |
Definition at line 139 of file llsky.cpp.
References getSunDirection(), mLastSunDirection, mOverrideSimSunPosition, setSunDirection(), and LLVector3::zero.
Referenced by LLToolGun::handleHover(), and LLWLParamManager::propagateParameters().
BOOL LLSky::getOverrideSun | ( | ) | [inline] |
Definition at line 65 of file llsky.h.
References mOverrideSimSunPosition.
Referenced by process_time_synch().
Definition at line 152 of file llsky.cpp.
References mVOSkyp, and LLPointer< Type >::notNull().
Referenced by LLToolGun::handleHover(), init(), process_time_synch(), LLWLParamManager::propagateParameters(), and setOverrideSun().
void LLSky::setSunTargetDirection | ( | const LLVector3 & | sun_direction, | |
const LLVector3 & | sun_ang_velocity | |||
) |
Definition at line 160 of file llsky.cpp.
References mSunTargDir.
Referenced by process_time_synch().
LLColor4 LLSky::getFogColor | ( | ) | const |
Definition at line 381 of file llsky.cpp.
References mVOSkyp.
Referenced by LLTracker::renderBeacon(), and LLVOGround::updateGeometry().
void LLSky::setCloudDensityAtAgent | ( | F32 | cloud_density | ) |
Definition at line 326 of file llsky.cpp.
References mVOSkyp.
Referenced by LLAppViewer::idle().
void LLSky::setWind | ( | const LLVector3 & | wind | ) |
Definition at line 335 of file llsky.cpp.
References mVOSkyp.
Referenced by LLAppViewer::idle().
void LLSky::updateFog | ( | const F32 | distance | ) |
Definition at line 391 of file llsky.cpp.
References mVOSkyp.
Referenced by LLPipeline::renderGeom().
void LLSky::updateCull | ( | ) |
Definition at line 399 of file llsky.cpp.
Referenced by LLPipeline::updateCull().
void LLSky::updateSky | ( | ) |
Definition at line 418 of file llsky.cpp.
References gPipeline, LLPipeline::hasRenderType(), mVOSkyp, and LLPipeline::RENDER_TYPE_SKY.
Referenced by display().
void LLSky::propagateHeavenlyBodies | ( | F32 | dt | ) |
Definition at line 344 of file llsky.cpp.
References getSunDirection(), llmin(), mOverrideSimSunPosition, mSunTargDir, mVOSkyp, and LLVector3::normVec().
Referenced by LLAppViewer::idle().
void LLSky::setFogRatio | ( | const F32 | fog_ratio | ) |
Definition at line 431 of file llsky.cpp.
References mVOSkyp.
Referenced by handleFogRatioChanged(), and init().
LLColor4U LLSky::getFadeColor | ( | ) | const |
LLVector3 LLSky::getSunDirection | ( | ) | const |
Definition at line 166 of file llsky.cpp.
References mVOSkyp, and LLVector3::z_axis.
Referenced by LLVOSky::initAtmospherics(), propagateHeavenlyBodies(), setOverrideSun(), LLPipeline::setupAvatarLights(), LLPipeline::setupHWLights(), LLDrawPoolWater::shade(), LLWaterParamManager::update(), and LLVOAvatar::updateShadowFaces().
LLVector3 LLSky::getMoonDirection | ( | ) | const |
Definition at line 179 of file llsky.cpp.
References mVOSkyp, and LLVector3::z_axis.
Referenced by LLFace::getGeometryVolume(), LLPipeline::setupHWLights(), LLDrawPoolWater::shade(), and LLWaterParamManager::update().
LLColor4 LLSky::getSunDiffuseColor | ( | ) | const |
Definition at line 192 of file llsky.cpp.
References mVOSkyp.
Referenced by LLVOClouds::getGeometry(), LLPipeline::setupHWLights(), LLDrawPoolWater::shade(), and LLVOClouds::updateGeometry().
LLColor4 LLSky::getMoonDiffuseColor | ( | ) | const |
Definition at line 217 of file llsky.cpp.
References mVOSkyp.
Referenced by LLPipeline::setupHWLights(), and LLDrawPoolWater::shade().
LLColor4 LLSky::getSunAmbientColor | ( | ) | const |
Definition at line 204 of file llsky.cpp.
References mVOSkyp.
Referenced by LLVOClouds::getGeometry(), and LLVOClouds::updateGeometry().
LLColor4 LLSky::getMoonAmbientColor | ( | ) | const |
LLColor4 LLSky::getTotalAmbientColor | ( | ) | const |
Definition at line 242 of file llsky.cpp.
References mVOSkyp.
Referenced by LLPipeline::enableLights(), and LLPipeline::setupHWLights().
F32 LLSky::getSunPhase | ( | ) | const |
Definition at line 366 of file llsky.cpp.
References mSunPhase.
Referenced by LLWLAnimator::getDayTime().
void LLSky::setSunPhase | ( | const F32 | phase | ) |
Definition at line 371 of file llsky.cpp.
References mSunPhase.
Referenced by process_time_synch().
void LLSky::destroyGL | ( | ) |
Definition at line 98 of file llsky.cpp.
References LLPointer< Type >::isNull(), mVOSkyp, mVOWLSkyp, and LLPointer< Type >::notNull().
Referenced by LLViewerWindow::stopGL().
void LLSky::restoreGL | ( | ) |
Definition at line 110 of file llsky.cpp.
References mVOSkyp, and mVOWLSkyp.
Referenced by LLViewerWindow::restoreGL().
void LLSky::resetVertexBuffers | ( | ) |
Definition at line 122 of file llsky.cpp.
References gPipeline, LLPipeline::markRebuild(), mVOGroundp, mVOSkyp, mVOWLSkyp, LLPointer< Type >::notNull(), LLDrawable::REBUILD_ALL, LLPipeline::resetVertexBuffers(), and TRUE.
Referenced by LLPipeline::resetVertexBuffers().
Definition at line 104 of file llsky.h.
Referenced by LLDrawPoolBump::beginFullbrightShiny(), LLDrawPoolBump::beginShiny(), cleanup(), destroyGL(), LLDrawPoolBump::endFullbrightShiny(), LLDrawPoolBump::endShiny(), getFadeColor(), getFogColor(), getFogRatio(), LLFace::getGeometryVolume(), getMoonAmbientColor(), getMoonDiffuseColor(), getMoonDirection(), getSunAmbientColor(), getSunDiffuseColor(), getSunDirection(), getTotalAmbientColor(), init(), LLDrawPoolSky::prerender(), propagateHeavenlyBodies(), LLDrawPoolWLSky::render(), LLDrawPoolWater::render(), LLDrawPoolSky::render(), LLDrawPoolGround::render(), LLDrawPoolBump::renderFullbrightShiny(), LLPipeline::renderGeom(), LLDrawPoolBump::renderGroup(), LLDrawPoolWLSky::renderHeavenlyBodies(), LLDrawPoolWater::renderReflection(), LLDrawPoolBump::renderShiny(), resetVertexBuffers(), restoreGL(), setCloudDensityAtAgent(), setFogRatio(), LLAgent::setRegion(), LLShaderMgr::setShaders(), setSunDirection(), setWind(), LLDrawPoolWater::shade(), sunUp(), LLPipeline::updateCull(), updateFog(), LLVOAvatar::updateShadowFaces(), updateSky(), and LLVOWLSky::updateStarColors().
Definition at line 105 of file llsky.h.
Referenced by cleanup(), init(), resetVertexBuffers(), LLAgent::setRegion(), LLPipeline::updateCull(), and LLVOSky::updateSky().
Definition at line 107 of file llsky.h.
Referenced by cleanup(), destroyGL(), handleWLSkyDetailChanged(), init(), LLDrawPoolWLSky::renderDome(), LLDrawPoolWLSky::renderStars(), resetVertexBuffers(), and restoreGL().
Definition at line 109 of file llsky.h.
Referenced by propagateHeavenlyBodies(), and setSunTargetDirection().
BOOL LLSky::mOverrideSimSunPosition [protected] |
Definition at line 115 of file llsky.h.
Referenced by getOverrideSun(), init(), LLSky(), propagateHeavenlyBodies(), and setOverrideSun().
F32 LLSky::mSunPhase [protected] |
LLColor4 LLSky::mFogColor [protected] |
F32 LLSky::mHaze [protected] |
F32 LLSky::mDomeRadius [protected] |
LLVector3 LLSky::mLastSunDirection [protected] |