
This texture attempts imitate the pattern of wood. Click on a snapshot to open it online.
import { wood } from "tsl-textures";
model.material.colorNode = wood ( {
scale: 2.5,
rings: 4.5,
lengths: 1,
angle: 0,
fibers: 0.3,
fibersDensity: 10,
color: new THREE.Color(15182336),
background: new THREE.Color(11163904),
seed: 0
} );
scale – level of details of the pattern, higher value generates finer details, [1, 4]rings – number of nested rings, [1, 10]lengths – lengths of the ring patterns, [1, 10]angle – angle of the ring pattern, in degrees, [-90, 90]fibers – visibility of fibers, [0, 1]fibersDensity – density of fibers, [2, 15]color – main colorbackground – secondary colorseed – number for the random generator, each value generates specific pattern