

This texture recreates a pattern that resembles Paleolithic cave art. With some level of imagination and pareidolia it is possible to see animals, peoples and even extraterrestrials. Click on a snapshot to open it online.
Code template of parameters with their default values.
import * as PET from "pet/patterns/cave-art.js";
:
model.material.map = PET.texture( );
PET.material( model.material );
The parameters of the texture generator are:
width – texture width in pixels, default 1024height – texture height in pixels, default 512scale – relative paiting size [0,100], default 50thickness – thickness of shapes [0,100], default 20noise – additional noise to the background [0,100], default 30color – color of paintings, default 0xD34545 (reddish)background – color of background, default 0xFFF8F0 (pale rock)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