mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
crude player physics & collision response
This commit is contained in:
@ -350,10 +350,10 @@ public class Renderer {
|
||||
matrix_float4x4(instance.rotation) *
|
||||
.scale(instance.scale),
|
||||
color: .init(
|
||||
UInt8(instance.color.x * 0xFF),
|
||||
UInt8(instance.color.y * 0xFF),
|
||||
UInt8(instance.color.z * 0xFF),
|
||||
UInt8(instance.color.w * 0xFF)))
|
||||
UInt8(truncating: NSNumber(value: instance.color.x * 0xFF)),
|
||||
UInt8(truncating: NSNumber(value: instance.color.y * 0xFF)),
|
||||
UInt8(truncating: NSNumber(value: instance.color.z * 0xFF)),
|
||||
UInt8(truncating: NSNumber(value: instance.color.w * 0xFF))))
|
||||
}
|
||||
|
||||
// Ideal as long as our uniforms total 4 KB or less
|
||||
|
Reference in New Issue
Block a user