#include "stdtypes.h"
#include "v3color.h"
#include "v4coloru.h"
#include "llviewerimage.h"
#include "llviewerobject.h"
#include "llframetimer.h"
Go to the source code of this file.
Classes | |
class | LLSkyTex |
class | LLHeavenBody |
TODO Move into the stars draw pool (and rename them appropriately). More... | |
class | LLHaze |
class | LLVOSky |
Functions | |
LL_FORCE_INLINE LLColor3 | color_div (const LLColor3 &col1, const LLColor3 &col2) |
LLColor3 | color_norm (const LLColor3 &col) |
BOOL | clip_quad_to_horizon (F32 &t_left, F32 &t_right, LLVector3 v_clipped[4], const LLVector3 v_corner[4], const F32 cos_max_angle) |
F32 | clip_side_to_horizon (const LLVector3 &v0, const LLVector3 &v1, const F32 cos_max_angle) |
F32 | color_intens (const LLColor3 &col) |
F32 | color_max (const LLColor3 &col) |
F32 | color_max (const LLColor4 &col) |
F32 | color_min (const LLColor3 &col) |
LL_FORCE_INLINE LLColor3 | refr_ind_calc (const LLColor3 &wave_length) |
LL_FORCE_INLINE LLColor3 | calc_air_sca_sea_level () |
F32 | azimuth (const LLVector3 &v) |
F32 | color_norm_pow (LLColor3 &col, F32 e, BOOL postmultiply=FALSE) |
Variables | |
const F32 | HORIZON_DIST = 1024.0f |
const F32 | SKY_BOX_MULT = 16.0f |
const F32 | HEAVENLY_BODY_DIST = HORIZON_DIST - 10.f |
const F32 | HEAVENLY_BODY_FACTOR = 0.1f |
const F32 | HEAVENLY_BODY_SCALE = HEAVENLY_BODY_DIST * HEAVENLY_BODY_FACTOR |
const F32 | EARTH_RADIUS = 6.4e6f |
const F32 | ATM_EXP_FALLOFF = 0.000126f |
const F32 | ATM_SEA_LEVEL_NDENS = 2.55e25f |
const F32 | ATM_HEIGHT = 100000.f |
const F32 | FIRST_STEP = 5000.f |
const F32 | INV_FIRST_STEP = 1.f/FIRST_STEP |
const S32 | NO_STEPS = 15 |
const F32 | INV_NO_STEPS = 1.f/NO_STEPS |
const F32 | sigma = 0.035f |
const F32 | fsigma = (6.f + 3.f * sigma) / (6.f-7.f*sigma) |
const F64 | Ndens = 2.55e25 |
const F64 | Ndens2 = Ndens*Ndens |
LLUUID | gSunTextureID |
LLUUID | gMoonTextureID |
const LLColor3 | gAirScaSeaLevel = calc_air_sca_sea_level() |
const F32 | AIR_SCA_INTENS = color_intens(gAirScaSeaLevel) |
const F32 | AIR_SCA_AVG = AIR_SCA_INTENS / 3.f |
Copyright (c) 2001-2008, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file llvosky.h.
Definition at line 2174 of file llvosky.cpp.
References azimuth(), F_PI, LLVector3::mV, VX, and VY.
Referenced by azimuth(), and LLVOAvatar::updateShadowFaces().
LL_FORCE_INLINE LLColor3 calc_air_sca_sea_level | ( | ) |
Definition at line 300 of file llvosky.h.
References ATM_SEA_LEVEL_NDENS, color_div(), F_PI, fsigma, and refr_ind_calc().
BOOL clip_quad_to_horizon | ( | F32 & | t_left, | |
F32 & | t_right, | |||
LLVector3 | v_clipped[4], | |||
const LLVector3 | v_corner[4], | |||
const F32 | cos_max_angle | |||
) |
Definition at line 1518 of file llvosky.cpp.
References clip_side_to_horizon(), FALSE, S32, and TRUE.
Referenced by LLVOSky::updateHeavenlyBodyGeometry().
Definition at line 1553 of file llvosky.cpp.
References B, and LLVector3::mV.
Referenced by clip_quad_to_horizon(), and LLVOSky::updateReflectionGeometry().
Definition at line 80 of file llvosky.h.
References LLColor3::mV.
Referenced by calc_air_sca_sea_level().
Definition at line 93 of file llvosky.h.
References LLColor3::mV.
Referenced by LLVOSky::init(), LLHaze::LLHaze(), and LLHaze::setSigSca().
Definition at line 103 of file llvosky.h.
References llmax(), and LLColor4::mV.
Definition at line 98 of file llvosky.h.
References llmax(), and LLColor3::mV.
Referenced by color_norm(), and color_norm_pow().
Definition at line 109 of file llvosky.h.
References llmin(), and LLColor3::mV.
Definition at line 162 of file llvosky.cpp.
References color_max().
Referenced by LLVOSky::updateFog().
Definition at line 2154 of file llvosky.cpp.
References color_max(), and color_pow().
Definition at line 286 of file llvosky.h.
References i, LLColor3::mV, and S32.
Referenced by calc_air_sca_sea_level().
const F32 AIR_SCA_AVG = AIR_SCA_INTENS / 3.f |
const F32 AIR_SCA_INTENS = color_intens(gAirScaSeaLevel) |
const F32 ATM_EXP_FALLOFF = 0.000126f |
const F32 ATM_HEIGHT = 100000.f |
const F32 ATM_SEA_LEVEL_NDENS = 2.55e25f |
const F32 EARTH_RADIUS = 6.4e6f |
Definition at line 55 of file llvosky.h.
Referenced by LLVOSky::cosHorizon(), and LLVOSky::LLVOSky().
const F32 FIRST_STEP = 5000.f |
const LLColor3 gAirScaSeaLevel = calc_air_sca_sea_level() |
Definition at line 82 of file llvosky.cpp.
Definition at line 81 of file llvosky.cpp.
const F32 HEAVENLY_BODY_DIST = HORIZON_DIST - 10.f |
const F32 HEAVENLY_BODY_FACTOR = 0.1f |
const F32 HORIZON_DIST = 1024.0f |
Definition at line 50 of file llvosky.h.
Referenced by LLVOSky::updateGeometry(), and LLVOSky::updateReflectionGeometry().
const F32 INV_FIRST_STEP = 1.f/FIRST_STEP |
const F32 INV_NO_STEPS = 1.f/NO_STEPS |
const F32 SKY_BOX_MULT = 16.0f |