<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "Xcode: 26.3.0 -"
  ],
  "documentType" : "article",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/rendering-reflections-in-real-time-using-ray-tracing",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Rendering reflections in real time using ray tracing"
}
-->

# Rendering reflections in real time using ray tracing

Implement realistic real-time lighting by dynamically generating reflection maps
by encoding a ray-tracing compute pass.

## Discussion

This sample code project relates to multiple WWDC sessions, including:

- [10089: Bring your advanced games to Apple platforms](https://developer.apple.com/wwdc24/10089/)
- [10101: Go bindless with Metal 3](https://developer.apple.com/wwdc22/10101/)
- [10286: Explore bindless rendering in Metal](https://developer.apple.com/wwdc21/10286/)
- [10150: Explore hybrid rendering with Metal ray tracing](https://developer.apple.com/wwdc21/10150/)

### Configure the sample code project

To run this sample app, you need the following:

- A Mac with macOS 13 or later, and Xcode 15.3 or later
- An iOS device with iOS 16 or later

> Note: This sample doesn’t support running in Simulator.

---

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)