<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLLightProbe/init(reflectiveTexture:irradianceTexture:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLLightProbe(im)initWithReflectiveTexture:irradianceTexture:"
  },
  "title" : "init(reflectiveTexture:irradianceTexture:)"
}
-->

# init(reflectiveTexture:irradianceTexture:)

Initializes a light probe with the specified cube map textures.

```
init(reflectiveTexture: MDLTexture?, irradianceTexture: MDLTexture?)
```

## Parameters

`reflectiveTexture`

A cube map texture that contains a rendering of a scene as seen from the light probe’s position.

`irradianceTexture`

A cube map texture that contains samples of the total light arriving at the light probe’s position from every direction.

## Return Value

A new light probe object.

## Discussion

You can derive an irradiance map from a reflective texture with methods on the [`MDLTexture`](/documentation/ModelIO/MDLTexture) class, or when creating a light probe with the [`init(textureSize:forLocation:lightsToConsider:objectsToConsider:reflectiveCubemap:irradianceCubemap:)`](/documentation/ModelIO/MDLLightProbe/init(textureSize:forLocation:lightsToConsider:objectsToConsider:reflectiveCubemap:irradianceCubemap:)) method.

---

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)