Table of Contents

Mesh:setGenericArray

Available since version: Gideros 2017.4

Description:

Assigns new content to a generic additional array to be used by a shader. It accepts multiple values or a Lua array.

Syntax:

Mesh:setGenericArray(index, type, mult, count, data)

Parameters:

  • index: (number) The data attribute index in the corresponding shader
  • type: (number) The data type, one of Shader.Dxxx constants
  • mult: (number) The vector dimension (1 for simple values, 2 for a vec2/float2, etc)
  • count: (number) The number of elements in the array
  • data: The actual values