---
title: "emissiveAlpha"
description: "Turns an rgb light value into a color with alpha, so glows composite over transparency."
group: "paint"
groupTitle: "Painting"
categoryId: "compose"
categorySlug: "compose"
categoryTitle: "Layering & output"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/compose.ts#L118"
---

# emissiveAlpha

Turns an rgb light value into a color with alpha, so glows composite over transparency.

```ts
emissiveAlpha(rgb: Expr, hint: string = 'emissive'): Expr
```

Import `compose` from `shaders/std` and use `compose.emissiveAlpha`.

Alpha is the brightest channel and the color is scaled up to match, so over black the layer looks exactly like the light it is, and over anything else like a translucent tint. Use it as the last step of a glow, spill or flare. Not for opaque bodies.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `rgb` | `Expr` |  |
| `hint` | `string` | Optional. Default `'emissive'`. |

## Example

```ts
paint: (params) => compose.emissiveAlpha(math.mul(params.uniforms.color.member('rgb'), coverage))
```

## See also

- [`layers`](/docs/primitives/compose/layers) — Stacks colors into one, first entry at the back.
- [`dithered`](/docs/primitives/compose/dithered) — Adds a tiny amount of noise to a final color so long soft gradients show no banding.

## Used by

[Irradiance](/docs/components/irradiance)