<!--
{
  "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/MDLSkyCubeTexture/update()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLSkyCubeTexture(im)updateTexture"
  },
  "title" : "update()"
}
-->

# update()

Generates new texel data matching the current sky parameters.

```
func update()
```

## Discussion

After you first create a sky cube texture, Model I/O does not generate texture data until you use one of the [`MDLTexture`](/documentation/ModelIO/MDLTexture) methods listed inAccessing Texture Data. If you then change the sky simulation or rendering parameters, call this method to generate new texture data.

---

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)