
This texture imitates the porous nature of karst rocks caused by erosion. Click on a snapshot to open it online.
import { karstRock } from "tsl-textures";
model.material.colorNode = karstRock ( {
scale: 2,
color: new THREE.Color(16774384),
background: new THREE.Color(13684944),
seed: 0
} );
position – coordinates used to map texture, default is TSL positionGeometry nodescale – level of details of the pattern, higher value generates finer details, [0, 4]color – color of linesbackground – color of backgroundseed – number for the random generator, each value generates specific pattern