Texture:replacePixels

Replaces pixels in the Texture, sourcing from a TextureData object.

Texture:replacePixels(textureData, x, y, slice, mipmap)

Arguments

NameTypeDefaultDescription
textureDataTextureDataThe TextureData containing the pixels to use. Currently, the TextureData needs to have the same dimensions as the source Texture.
xnumber0The x offset to replace at.
ynumber0The y offset to replace at.
slicenumber1The slice to replace. Not applicable for 2D textures.
mipmapnumber1The mipmap to replace.

Returns

Nothing

See also