Skip to content

Function: writeInstancePattern() ​

ts
function writeInstancePattern(mesh, shaders, fill, count): void;

Experimental

Upload fill resolved for the count instances of an instanced rect or arc mesh (its iFill attribute gives the capacity) and switch it to the pattern shaders.

Parameters ​

ParameterType
meshMesh
shadersreadonly [string, string]
fillPatternFill
countnumber

Returns ​

void

Released under the MIT License.