Module veloren_voxygen::scene::camera
source ยท Structsยง
Enumsยง
Constantsยง
- CLIPPING_MODE_RANGE ๐
- FREEFLY_INTERP_TIME ๐
- LERP_ORI_RATE ๐
Functionsยง
- clamp_and_modulate ๐
- Generalized method to construct a perspective projection with x โ [-1,1], y โ [-1,1], z โ [0,1] given fov_y_radians, aspect_ratio, 1/n, and 1/f. Note that you pass in 1/n and 1/f, not n and f like you normally would for a perspective projection; this is done to enable uniform handling of both finite and infinite far planes.
- Same as perspective_lh_zo_general, but for right-handed source spaces.