mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
use floats for instance colour memory
This commit is contained in:
@ -89,6 +89,10 @@ public extension Color where T: BinaryFloatingPoint {
|
||||
self.init(r: newR, g: newG, b: newB, a: Self.one)
|
||||
}
|
||||
|
||||
init<U: BinaryFloatingPoint>(_ other: Color<U>) {
|
||||
self._values = SIMD4<T>(other._values)
|
||||
}
|
||||
|
||||
init<U: BinaryInteger>(_ other: Color<U>) {
|
||||
let mul = 1 / T(0xFF)
|
||||
self.init(
|
||||
|
Reference in New Issue
Block a user