This texture renderes a ball of entangled lines or the lineae of Europa, one of the Galilean moons of Jupiter. The generated texture is intended for color maps. Click on a snapshot to open it online.
Code template of parameters with their default values.
import * as PET from "pet/patterns/entangled.js";
:
model.material.map = PET.texture( );
PET.material( model.material );
The parameters of the texture generator are:
width
– texture width in pixels, default 1024height
– texture height in pixels, default 512scale
– pattern size [0,100], default 50density
– density of lines [0,20], default 10color
– color of lines, default 0xFFFFFF (white)background
– color of background, default 0x000000 (black)All texture modules share the same API.
pattern( x, y, z, color, options )
– pattern implementationtexture( {params} )
– generator for a texture with given parametersdefaults
– object with default parametersmaterial( ... )
– material shader patcher