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
| Parameter | Type |
|---|---|
mesh | Mesh |
shaders | readonly [string, string] |
fill | PatternFill |
count | number |
Returns
void