tsl-textures

TSL Textures

Wood

This texture attempts imitate the pattern of wood. Click on a snapshot to open it online.

Code example

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
} );

Parameters

Online generator

online/wood.html

Source

src/wood.js

Home