
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.

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.

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





Tolerance = 0.085 | Tolerance = 0.5 | Tolerance = 0.5 | Tolerance = 0.5 | Tolerance = 0.5 |
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.




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 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.


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.

