

This texture immitates the design of camouflage patters in military clothes and vehicles. It overlaps four-color spots. The generated texture is intended for color maps. Click on a snapshot to open it online.
Code template of parameters with their default values.
import * as PET from "pet/patterns/camouflage.js";
:
model.material.map = PET.texture( );
PET.material( model.material );
The parameters of the texture generator are:
width – texture width in pixels, default 512height – texture height in pixels, default 256scale – pattern size [0,100], default 50colorA – top color, default 0xC2BEA8colorB – second color, default 0x9C895EcolorC – third color, default 0x92A375colorD – bottom color, default 0x717561hue – hue shift [-360,360], default 0saturation – saturation shift [-100,100], default 0brightness – brightness shift [-100,100], default 0All texture modules share the same API.
pattern( x, y, z, color, options ) – pattern implementationtexture( {params} ) – generator for a texture with given parametersdefaults – object with default parametersmaterial( ... ) – material shader patcher