

This texture renders clouds. The texture has alpha channel to support transparency and opacity. Click on a snapshot to open it online.
Code template of parameters with their default values.
import * as PET from "pet/patterns/clouds.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 – relative could size [0,100], default 50density – density of clouds [0,100], default 50opacity – opacity of clouds [0,100], default 80color – color of dots, default 0xFFFFFF (white)subcolor – secondary color, default 0xA0A0B0 (pale gray)All 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