This texture recreates the turbulent surface of gas giants planet like Jupiter and Saturn, as well as ice giants like Uranus and Neptune. Click on a snapshot to open it online.
import { gasGiant } from "tsl-textures";
model.material.colorNode = gasGiant( {
scale: 2,
turbulence: 0.3,
blur: 0.6,
colorA: new THREE.Color(16775408),
colorB: new THREE.Color(15788208),
colorC: new THREE.Color(11509968),
seed: 0
} );
scale
– level of details of the pattern, higher value generates finer details, [0, 4]turbulence
– amount of turbulence of athmospheric currents, [0, 1]blur
– blur of atmospheric currents, [0, 1]colorA
– major colorcolorB
– secondary colorcolorC
– turbulence colorseed
– number for the random generator, each value generates specific pattern