tsl-textures

TSL Textures

Rust

This texture generates a rust pattern. Depending on colors, it may also look like frost. The texture has opacity layer. Click on a snapshot to open it online.

Code example

import { rust } from "tsl-textures";

model.material.colorNode = rust ( {
	scale: 2,
	iterations: 8,
	amount: -0.3,
	opacity: 0.5,
	noise: 0.5,
	noiseScale: 0.5,
	color: new THREE.Color(12615680),
	background: new THREE.Color(32),
	seed: 0
} );

model.material.transparent = true;
model.material.opacity = 1;
model.material.side = THREE.DoubleSide;
model.material.opacityNode = rust.opacity ( {
	scale: 2,
	iterations: 8,
	amount: -0.3,
	opacity: 0.5,
	noise: 0.5,
	noiseScale: 0.5,
	color: new THREE.Color(12615680),
	background: new THREE.Color(32),
	seed: 0
} );

Parameters

Online generator

online/rust.html

Source

src/rust.js

Home