This texture designs the stone and the metal rim of a scepter head. 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/scepter-head.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 512factorX
– rim design along X axis [0,100], default 18factorY
– rim design along Y axis [0,100], default 36factorZ
– rim design along Z axis [0,100], default 0colorRim
– color of the rim, default 0xFFFFFFcolorA
– stone color, default 0x70E0FF (light blue)colorB
– sdcendant stone color, default 0x3000FF (blue)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