tsl-textures

TSL Textures

Karst rock

This texture imitates the porous nature of karst rocks caused by erosion. Click on a snapshot to open it online.

Code example

import { karstRock } from "tsl-textures";

model.material.colorNode = karstRock ( {
	scale: 2,
	color: new THREE.Color(16774384),
	background: new THREE.Color(13684944),
	seed: 0
} );

Parameters

Online generator

online/karst-rock.html

Source

src/karst-rock.js

Home