Beginner PBR Channel

What is an Opacity Map and When Do You Need One?

Opacity maps — also called alpha maps — control which parts of a surface are transparent. From chain-link fences to tree leaves to glass, any asset where the mesh shape doesn't define the visible silhouette needs an opacity map. This guide explains how they work and when to reach for them.

⏱ ~7 min read · 6 sections · Beginner friendly

Section 01

What is an Opacity Map?

An opacity map (or alpha map) is a greyscale texture that controls how transparent each pixel of a surface is. The values work simply: white (1.0) = fully opaque, black (0.0) = fully transparent, and grey values in between produce partial transparency.

The most common way to store opacity data is in the alpha channel of the albedo texture — making a four-channel RGBA image rather than a three-channel RGB image. This keeps the opacity data paired with the color it affects and saves a texture slot, since the engine reads both from a single file.

Why use a flat plane instead of geometry? Modelling the actual shape of a leaf, chain-link fence, or grass blade in geometry would cost thousands of triangles per asset. Instead, artists model a simple flat quad and use an opacity map to punch the correct shape out of it — one draw call, a handful of triangles, and the full visual complexity of the shape.
Section 02

Masked vs Translucent — Choosing the Right Mode

Game engines offer two main transparency modes, and choosing the wrong one has significant consequences for both visual quality and performance. This is one of the most important decisions you make when setting up any transparent material.

Masked (Alpha Test / Clip)

Each pixel is either fully opaque or fully invisible based on a threshold value. No semi-transparency. Correct depth sorting at no extra cost. Renders nearly as fast as an opaque material. Best for foliage, fences, hair cards, and any hard-edged cutout shape.

Translucent (Alpha Blend)

Supports true semi-transparent blending at any opacity level. Can cause depth sorting artifacts when multiple transparent surfaces overlap. Significantly more expensive to render. Best for glass, water, smoke, particles, and anything requiring soft edges.

Default to Masked whenever possible. For foliage, fences, grilles, and any hard-edged cutout, Masked mode is almost always the right choice. It's cheap, it sorts correctly, and it avoids all the depth artifact problems that plague translucent surfaces. Only switch to Translucent when you genuinely need soft blending or partial see-through.

The Clip Threshold

In Masked mode, the engine applies a clip threshold — any alpha value below the threshold is discarded (invisible), any value above it is kept (fully opaque). The default is usually 0.5, meaning 50% grey or darker disappears. Raising the threshold tightens the cutout edge; lowering it expands it. This is tunable per material without changing the texture.

Section 03

The Performance Cost of Transparency

Transparent geometry is one of the most common performance traps in game rendering. Understanding why it's expensive helps you make smarter decisions about when to use it.

Problem 1

Depth sorting overhead

Translucent objects must be drawn back-to-front so that blending happens correctly. The CPU has to sort them every frame — breaking GPU batching and adding significant overhead as the number of transparent objects grows.

Problem 2

Overdraw

When multiple transparent layers stack — a forest of translucent leaf cards, layered smoke particles — every layer is drawn even where it's completely hidden behind others. The GPU cost multiplies with each layer. This is why dense foliage is expensive even at low polygon counts.

Problem 3

Deferred rendering incompatibility

Most modern engines use a deferred rendering pipeline for opaque surfaces — it's fast and handles many lights efficiently. Translucent materials can't use deferred rendering and fall back to a slower forward pass, losing lighting quality and performance simultaneously.

Masked mode sidesteps all three problems. Because masked pixels are either fully opaque or not drawn at all, they integrate perfectly with the deferred renderer, sort correctly without extra CPU work, and don't produce overdraw. This is why professional game artists prefer Masked for almost all cutout use cases.

Section 04

Common Use Cases

Asset Type Mode Notes
Tree leaves / foliage cards Masked Flat quads with alpha cutout of leaf shape. Never model individual leaf geometry — cards are far cheaper and look just as good at distance.
Grass billboards Masked Flat sprites with alpha cutout. Rotated to always face the camera. The alpha defines the grass blade silhouette.
Chain-link fences / grilles Masked One flat plane covers an entire fence panel. The alpha punches out the gaps. One draw call, handful of tris, full fence complexity.
Hair cards Masked Game hair is flat strips with alpha masking individual strands. The alpha is critical — without it, hair looks like flat rectangular strips.
Window glass Translucent True see-through requires Translucent mode. Keep glass surfaces simple — avoid stacking multiple glass planes where possible.
Smoke / VFX particles Translucent Soft-edged particle sprites need alpha blending. Unavoidable — but keep particle counts reasonable to control overdraw cost.
Decals (cracks, stickers) Masked or Translucent Hard-edged decals (bullet holes, logos) use Masked. Soft-edged decals (dirt, blood splatter) use Translucent.
Section 05

Painting Opacity Maps

The approach to painting differs significantly depending on which transparency mode you're targeting.

For Masked (hard cutouts)

Paint pure black and white only. No grey values — they'll be clipped to one side of the threshold anyway, and soft edges at the boundary produce a jagged, aliased cutout. Sharp edges in the alpha produce clean cutouts in Masked mode.

For Translucent (soft blending)

Use the full greyscale range. Feather edges from white at the solid center to black at the fully transparent outer edge. A smooth gradient at the transition creates a natural-looking fade without any harsh borders.

01

Paint the albedo first

Fully paint the color, roughness, and other channels as if the asset were opaque. The transparency layer sits on top — it's easier to paint when you can see the full surface.

02

Switch to the Alpha channel

Fill the entire alpha with white (fully opaque) as a starting point. Then paint black onto every area that should be transparent — the gaps in a fence, the space between leaves, the border outside a decal shape.

03

Check the result in 3D

Toggle the alpha view in your viewport to see the cutout result in real time. Verify that all the gaps are fully black and all the opaque areas are clean white — no partial grey values where you don't want them.

04

Export as RGBA

When exporting, make sure the alpha channel is included. PNG and TGA both support alpha. JPEG does not — never use JPEG for any texture that needs an alpha channel.

Never use JPEG for alpha maps. JPEG is a lossy format with no alpha channel support. Even if you work around the alpha limitation, JPEG compression introduces color artifacts that are immediately visible in the aliased edges of a masked cutout. Always use PNG or TGA.
Section 06

Opacity in Trumble

Trumble lets you paint the Alpha channel alongside all other PBR channels in the same session. Switch to the Alpha channel in the layer panel, fill with white, then paint black onto transparent areas. The 3D viewport updates in real time so you can see exactly how the cutout reads on the mesh.

At export time, Trumble embeds the alpha in the Albedo texture as a four-channel RGBA file — which is the format most engines expect. The engine export presets handle this automatically, so you don't need to manually pack channels or configure export settings per engine.

Paint in layers

Use Trumble's layer system to paint the alpha separately from albedo. Non-destructive — adjust the mask without touching your color work.

Real-time preview

The 3D viewport shows transparency in real time as you paint. See exactly how the cutout reads on the mesh before export.

RGBA export

Trumble exports alpha embedded in the albedo as a PNG RGBA file — the standard format expected by Unreal, Unity, and Godot.

Foliage workflow tip: For leaf cards, paint your leaf albedo on a square canvas with plenty of space around the edges. Paint the alpha as a clean black-and-white cutout of the leaf shape. Export as RGBA PNG. In your engine, set the material to Masked mode with a clip threshold of 0.5. That's the complete foliage card workflow — and it produces results that are hard to distinguish from modelled leaf geometry at any normal viewing distance.