Module veloren_voxygen::scene::camera

source ยท

Structsยง

Enumsยง

Constantsยง

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.