Module veloren_common::util
source · Re-exports§
pub use plane::Plane;
pub use projection::Projection;
pub use dir::*;
Modules§
- color 🔒
- option 🔒
- Contains
SpatialGrid
which is useful for accelerating queries of nearby entities
Structs§
Constants§
Functions§
- Preserves the luma of one color while changing its chromaticity to match the other
- Convert hsv to rgb. Expects h [0, 360], s [0, 1], v [0, 1]
- Convert rgb to hsv. Expects rgb to be [0, 1].
- Convert linear rgb to CIExyY
- Convert linear rgb to CIEXYZ
- directly converted from ‘vec3 srgb_to_linear(vec3 srgb)’ function in ‘srgb.glsl’
- This function is optimized for speed over perfect accuracy
- Convert to CIExyY to linear rgb