mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-09-05 20:21:31 +00:00
current state of depth buffer implementation (broken)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
public extension FloatingPoint {
|
||||
@inline(__always) var degrees: Self { self * (180 / Self.pi) }
|
||||
@inline(__always) var radians: Self { self * (Self.pi / 180) }
|
||||
|
||||
@inline(__always) func lerp(_ a: Self, _ b: Self) -> Self { b * self + a * (1 - self) }
|
||||
@inline(__always) func mlerp(_ a: Self, _ b: Self) -> Self { a + (b - a) * self }
|
||||
}
|
||||
|
Reference in New Issue
Block a user