Module scene

Source

Re-exportsยง

pub use self::camera::Camera;
pub use self::camera::CameraMode;
pub use self::debug::Debug;
pub use self::debug::DebugShape;
pub use self::debug::DebugShapeId;
pub use self::figure::FigureMgr;
pub use self::lod::Lod;
pub use self::particle::ParticleMgr;
pub use self::terrain::SpriteRenderContextLazy;
pub use self::terrain::Terrain;
pub use self::tether::TetherMgr;
pub use self::trail::TrailMgr;

Modulesยง

camera
debug
figure
lod
math
particle
simple
smoke_cycle
terrain
tether
trail

Structsยง

EventLight ๐Ÿ”’
Scene
SceneData
Skybox ๐Ÿ”’

Constantsยง

CURSOR_PAN_SCALE ๐Ÿ”’
EPSILON_UPSILON ๐Ÿ”’
The minimum sin ฮณ we will use before switching to uniform mapping.
LIGHT_DIST_RADIUS ๐Ÿ”’
MAX_LIGHT_COUNT ๐Ÿ”’
MAX_POINT_LIGHT_MATRICES_COUNT ๐Ÿ”’
MAX_SHADOW_COUNT ๐Ÿ”’
NUM_DIRECTED_LIGHTS ๐Ÿ”’
RAIN_THRESHOLD ๐Ÿ”’
The threashold for starting calculations with rain.
RUNNING_THRESHOLD ๐Ÿ”’
Above this speed is considered running Used for first person camera effects
SHADOW_DIST_RADIUS ๐Ÿ”’
SHADOW_FAR ๐Ÿ”’
SHADOW_MAX_DIST ๐Ÿ”’
SHADOW_NEAR ๐Ÿ”’
ZOOM_CAP_ADMIN ๐Ÿ”’
ZOOM_CAP_PLAYER ๐Ÿ”’

Functionsยง

compute_scalar_fov ๐Ÿ”’
Approximate a scalar field of view angle using the parameterization from section 4.3 of Lloydโ€™s thesis:
compute_warping_parameter ๐Ÿ”’
Compute a near-optimal warping parameter that helps minimize error in a shadow map.
compute_warping_parameter_perspective ๐Ÿ”’
Compute a near-optimal warping parameter that falls off quickly enough when the warp angle goes past the minimum field of view angle, for perspective projections.

Type Aliasesยง

LightData
is_daylight, array of active lights.