
This texture renderes the convection cells of plasma on the surface of a star. These granules are a phenomenon of the photosphere. Click on a snapshot to open it online.
import { photosphere } from "tsl-textures";
model.material.colorNode = photosphere ( {
scale: 2,
color: new THREE.Color(16776960),
background: new THREE.Color(16711680),
seed: 0
} );
position – coordinates used to map texture, default is TSL positionGeometry nodescale – level of details of the pattern, higher value generates finer details, [0, 4]color – color of hot areasbackground – color of backgroundseed – number for the random generator, each value generates specific pattern