Texture:replacePixels

Replaces pixels in the Texture, sourcing from an Image object.

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

Arguments

NameTypeDefaultDescription
imageImageThe Image containing the pixels to use. Currently, the Image 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