Module veloren_voxygen::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ยง
Structsยง
- EventLight ๐
- 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_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 a near-optimal warping parameter that helps minimize error in a shadow map.
- 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ยง
- is_daylight, array of active lights.