Draw the same mesh multiple times on the GPU
Summary (oneliner)
For better performance you should use the "Trigger Once" op on the mesh going into the Geom input. Check the example patch to see this being applied.
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Caniuse query
Inputs
Trigger In
The shape that will be instanced
Global scale for all instances, disabled if scale array is used
Limit Number of Instances
Enable to set a limit on how many instances are created
Parameters
Needs an XYZ array to determine the positions of each instance
Needs an XYZ array to determine the scale of each instance
Needs an XYZ array to determine the XYZ rotation of each instance. 0 - 360 degrees.
Pick a material blend mode with an integer
Needs an RGBA array to determine the color of each instance.
Needs an array4 in standard UV range (0-1). First two numbers are for UV coordinates. Second two are for UV scale. [ U, V, U scale, V scale ]
Outputs
Trigger Out
Total number of instances/shapes
Patches using MeshInstancer_v4
Changelog
created op 2019-11-14 - cables | |
Ops.User.cables.MeshInstancer_v3 renamed to Ops.Gl.MeshInstancer_v3 2019-11-14 - cables | |
Ops.Gl.MeshInstancer_v3 renamed to Ops.Gl.MeshInstancer_v4 2020-07-23 - pandur | |
added core lib: cgl_shadermodifier 2020-07-23 - pandur |