Explore lighting: by default, ARView applies an image based light (HDRI, or skybox) to the environment, which would make colors appear lighter. In order to remove the default lighting, apply a black image instead:
class MyARView: ARView {
required init(frame: CGRect) {
super.init(frame: frame)
Task {
let iblResource = try await EnvironmentResource(named: "black")
environment.lighting.resource = iblResource
}
}
}
See EnvironmentResource and Construct an immersive environment. Search for how to create IBL resources for RealityKit.
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags: