This texture attempts imitate the pattern of wood. Click on a snapshot to open it online.
import { wood } from "tsl-textures/wood.js";
model.material.colorNode = wood ( {
scale: 2.5,
rings: 4.5,
length: 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]length
– length of the ring pattern, [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