A type that controls compression, sampling quality, and cubemap dimensions when creating an environment resource.
The options provide control for balancing memory usage, quality, and processing power
when creating an environment's lighting data.
Creates an environment creation options structure.
- Parameters:
- samplingQuality: The skybox sampling quality for lighting textures.
- specularCubeDimension: The dimension of the computed specular cubemap for material reflections.
- compression: The compression to apply to environment textures.
- skyboxMode: Skybox's preservation in the environment resource.
- Note: The skybox is not needed for image based lighting with `VirtualEnvironmentProbeComponent`
and `ImageBasedLightComponent`.
get · iOS 27.0+
skyboxMode
TypeScript
get skyboxMode(): Promise<EnvironmentResource_SkyboxMode>
Swift declaration
var skyboxMode: EnvironmentResource.SkyboxMode { get set }
Skybox's preservation in the environment resource.
Creates an environment creation options structure.
- Parameters:
- samplingQuality: The skybox sampling quality for lighting textures.
- specularCubeDimension: The dimension of the computed specular cubemap for material reflections.
- compression: The compression to apply to environment textures.
get · iOS 18.0+
samplingQuality
TypeScript
get samplingQuality(): Promise<EnvironmentResource_CreateOptions_SamplingQuality>
Swift declaration
var samplingQuality: EnvironmentResource.CreateOptions.SamplingQuality
The skybox sampling quality for lighting textures.
var samplingQuality: EnvironmentResource.CreateOptions.SamplingQuality
The skybox sampling quality for lighting textures.
get · iOS 18.0+
specularCubeDimension
TypeScript
get specularCubeDimension(): Promise<(number) | null>
Swift declaration
var specularCubeDimension: Int?
The dimension of the computed specular cubemap for material reflections.
If `nil`, the environment resource uses the source cubemap's dimensions.
A value lower than that of the cubemap helps to reduce the memory footprint
in scenes where you view skybox details through specular reflections.
- Note: The specular cube dimension clamps to the source
cubemap's dimensions if it exceeds them.
The dimension of the computed specular cubemap for material reflections.
If `nil`, the environment resource uses the source cubemap's dimensions.
A value lower than that of the cubemap helps to reduce the memory footprint
in scenes where you view skybox details through specular reflections.
- Note: The specular cube dimension clamps to the source
cubemap's dimensions if it exceeds them.