Skip to content
07-848 2005

KeyShot Studio, materials

Color Key Mask

Mask a specified colour in a texture map or procedural texture. Adjust Tolerance and Fuzziness to control the mask.

On this page
  1. Metal label mask
  2. Color Key Mask examples
  3. Masking individual colours
  4. Label masks
  5. Displacement mask
Color key mask

Use Color Key Mask in KeyShot to mask a specified colour in a texture map or procedural texture. Adjust Tolerance and Fuzziness to control the mask.

Enable Invert to invert the mask. The Color Key becomes the unmasked colour.

Color key mask panel

Tolerance and Fuzziness

Tolerance and Fuzziness control how far the colour mask extends.

The mask fully includes any source colour whose distance from the Color Key colour is below Tolerance.

Fuzziness gradually includes more colours beyond Tolerance, with falloff. It does not fade the mask within Tolerance.

The examples below use a cubic lattice of spheres to show how Tolerance and Fuzziness work.

Cubic sphere lattice Pure red (RGB: 255, 0, 0), green (RGB: 0, 255, 0) and blue (RGB: 0, 0, 255) axes with additive blending
Cubic sphere lattice Pure red (RGB: 255, 0, 0), green (RGB: 0, 255, 0) and blue (RGB: 0, 0, 255) axes with additive blending

Metal label mask

A Color Key Mask controls the opacity of a Metal label. The Color Key is RGB: 128, 0, 255.

ColorKeyMask Parameters Label Tolerance 0.085 Fuzziness
ColorKeyMask Parameters Label Tolerance 0.5 Fuzziness
ColorKeyMask Parameters Label Tolerance 0.5 Fuzziness 0.1
ColorKeyMask Parameters Label Tolerance 0.5 Fuzziness 0.5
ColorKeyMask Parameters Label Invert

Tolerance = 0.085
Fuzziness = 0

Tolerance = 0.5
Fuzziness = 0

Tolerance = 0.5
Fuzziness = 0.1

Tolerance = 0.5
Fuzziness = 0.5

Tolerance = 0.5
Fuzziness = 0
The Invert option is enabled.

Color Key Mask examples

Masking individual colours

The first two examples show a model with a Mold-Tech plastic material and a solid-coloured Label of the old KeyShot logo. Use Color Key Mask nodes to mask out individual colours.

ColorKeyMask Texture KeyShotIconColors
ColorKeyMask Label Texture
ColorKeyMask PinkMask default
ColorKeyMask PinkMask adjusted

The Label texture used as the source for Color Key Mask.

Left image: Mold-Tech plastic material with Label.

Color Key Mask with Tolerance = 0.25 and Fuzziness = 1 (default values)

Color Key Mask with Tolerance = 0.2 and Fuzziness = 0.4

The other two examples show a Color Key Mask node masking out the texture's pink colour. To show the result, the node's output connects to the Color parameter of a Flat material.

Depending on the texture's colours, you may need to adjust Tolerance and Fuzziness to get a precise, sharp black and white mask.

The basic Material Graph structure for using Color Key Mask to drive a material’s parameter: Texture > Color Key Mask > Material.
The basic Material Graph structure for using Color Key Mask to drive a material’s parameter: Texture > Color Key Mask > Material.

The following two examples show different uses of Color Key Mask.

Label masks

Three Color Key Mask nodes mask out the texture's three solid colours. The masks connect to the opacity of three Label materials.

ColorKeyMask Mask ThreeLabels
ColorKeyMask MaterialGraph ThreeLabels

Displacement mask

Two Color Key Mask nodes mask out two colours in the texture.
One mask connects to the opacity of a Label material. The other connects to a Displace node.

ColorKeyMask Mask Displacement
ColorKeyMask MaterialGraph Displacement
Adapted from KeyShot Studio documentation: Color Key Mask. © 2026 KeyShot

Procadsys customer support

Still need help?

Licences, renewals and billing

Our New Zealand team looks after your KeyShot licences, renewals and invoices.

Monday to Friday, 9:00 am to 4:30 pm NZ time, excluding New Zealand public holidays.

Technical problems

Installation errors, crashes and other technical problems with KeyShot are handled by KeyShot support.