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.
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
} );
scale
– level of details of the pattern, higher value generates finer details, [0, 14]iterations
– number of iteration of generation, higher value generates finer details, [4, 10]amount
– amount of rusty surface, [-1, 1]opacity
– opacity of periferal areas of rust, [0, 1]noise
– amount of noise on rusty surface, [0, 1]noiseScale
– density of noise, [0, 1]color
– color of rustbackground
– color of peripheral rustseed
– number for the random generator, each value generates specific pattern