Table of Contents

Pixel:setTexture

Available since version: in development

Description:

Associate a texture to this pixel

Syntax:

Pixel:setTexture(texture [, slot, matrix])

Parameters:

  • texture: (TextureBase) The texture to associate to this pixel, or nil to deassociate.
  • slot: (number) The texture slot that the texture should be associated to. Leave empty or set to 0 for main texture, or if you don't use a specific shader.
  • matrix: (Matrix) an optional transform for the texture