<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/EnvironmentResource/CreateOptions/init(skyboxMode:samplingQuality:specularCubeDimension:compression:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation19EnvironmentResourceC13CreateOptionsV10skyboxMode15samplingQuality21specularCubeDimension11compressionAeC06SkyboxH0V_AE08SamplingJ0OSiSgAA07TextureD0C11CompressionVtcfc"
  },
  "title" : "init(skyboxMode:samplingQuality:specularCubeDimension:compression:)"
}
-->

# init(skyboxMode:samplingQuality:specularCubeDimension:compression:)

Creates an environment creation options structure.

```
init(skyboxMode: EnvironmentResource.SkyboxMode, samplingQuality: EnvironmentResource.CreateOptions.SamplingQuality = .fast, specularCubeDimension: Int? = nil, compression: EnvironmentResource.Compression = .default)
```

## Parameters

`skyboxMode`

Skybox’s preservation in the environment resource.

`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.

## Discussion> Note: The skybox is not needed for image based lighting with `VirtualEnvironmentProbeComponent`
> and `ImageBasedLightComponent`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)