<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/output/setOpacity",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "output::setOpacity"
  },
  "title" : "output::setOpacity"
}
-->

# output::setOpacity

Sets the opacity of the rendered output.

```
void output::setOpacity(half opacity)
```

## Parameters

`opacity`

The opacity value (0.0 = fully transparent, 1.0 = fully opaque).

## Discussion

This function customizes the alpha component of the rendered particle output,
controlling its transparency. This affects only the rendered appearance and
does not modify the particle node itself.

> Visual: ![Graph](output__setOpacity)

---

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)