The same grayscale image behaves differently when sampling R versus A. Separate masks, noise and frame sequences and match color/data import settings.
The same grayscale image behaves differently when sampling R versus A. Separate masks, noise and frame sequences and match color/data import settings.

VFX production guide index

A texture can store more than color

A texture is an image placed on a model or particle. It can store color, hidden areas, surface detail or animation frames. Use the table to choose which kind of image you need.

TypeStored informationUse
Color mapRGB colors and painted patternsFeed visible color; manage its color space.
Grayscale maskWhite=1, black=0, intermediate densityRead a chosen channel for opacity or coverage; black is not automatically transparent.
Noise / flowIrregular values or encoded directionDistort an edge or UVs; agree on encoding and direction.
Normal mapSurface-normal directionChange lighting detail, not the mesh silhouette.
Sequence / flipbookA sequence of evolving shapesSelect cells using lifetime or time.
Black RGB and transparent alpha are different data
Black RGB and transparent alpha are different data

Distinguish black RGB from zero alpha

A white circle painted on a black image still has a visible black background when placed directly on a surface. Connect its R component to Opacity/Alpha in the shader: white remains visible, gray becomes translucent and black disappears. A PNG exported with a transparent background stores transparency in A instead. Reading A from an opaque mask does not remove its black rectangle because A is one everywhere.

RGB means red, green and blue color components; A means Alpha, the transparency component. If one image stores both color and a mask, record which component contains each. Check sRGB when importing: an ordinary color picture and an R channel used as numeric opacity data need different treatment.

Black RGB and transparent alpha are different data
Black RGB and transparent alpha are different data

Match UVs, tiling and padding

UV coordinates determine which part of the image is placed at each point on the model. For a scrolling texture, make its repeating edges join and use Repeat. For a single soft light or cloud, leave a black margin and use Clamp to stop at the edges. In a flipbook image, check that nearby frames do not bleed into each other when displayed small.

For more detail, use the UV glossary and Normal Map glossary for those definitions.

Check file bytes and runtime memory separately

PNG compresses the image without losing its pixel information. A smaller PNG does not necessarily use proportionally less memory in a running game. Check imported resolution, mipmaps (smaller copies used at a distance), and the compression setting for the target hardware. Keep the editable PSD and engine-ready PNG as separate files.

Sizes such as 512×512 are learning examples, not universal requirements. Compare at the actual screen size on target hardware and retain enough detail to avoid blur or compression blocks.

References