higher quality depth buffer

This commit is contained in:
a dinosaur 2024-08-19 08:19:13 +10:00
parent 8904db24a5
commit 9b455652ff

View File

@ -42,7 +42,7 @@ fileprivate let cubeIndices: [UInt16] = [
fileprivate let numFramesInFlight: Int = 3 fileprivate let numFramesInFlight: Int = 3
fileprivate let colorFormat: MTLPixelFormat = .bgra8Unorm_srgb fileprivate let colorFormat: MTLPixelFormat = .bgra8Unorm_srgb
fileprivate let depthFormat: MTLPixelFormat = .depth16Unorm fileprivate let depthFormat: MTLPixelFormat = .depth32Float
fileprivate let clearColor: Color<Double> = .black.mix(.white, 0.1).linear fileprivate let clearColor: Color<Double> = .black.mix(.white, 0.1).linear
public class Renderer { public class Renderer {