This texture renders a pattern of regularily spread white and black lines. They are used in the zebra analysis to examine the second derivative of smooth surface. The generated texture is intended for color or environment maps. Click on a snapshot to open it online.
Code template of parameters with their default values.
import * as PET from "pet/patterns/zebra-lines.js";
:
model.material.map = PET.texture( );
PET.material( model.material );
The parameters of the texture generator are:
width
– texture width in pixels, default 512height
– texture height in pixels, default 256scale
– pattern size [0,100], default 60angle
– pattern tilt angle in degrees [-180,180], default 0All 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