Texture:replacePixels
Replaces pixels in the Texture, sourcing from a TextureData
object.
Texture:replacePixels(textureData, x, y, slice, mipmap)
Arguments
Name | Type | Default | Description |
textureData | TextureData | The TextureData containing the pixels to use. Currently, the TextureData needs to have the same dimensions as the source Texture. | |
x | number | 0 | The x offset to replace at. |
y | number | 0 | The y offset to replace at. |
slice | number | 1 | The slice to replace. Not applicable for 2D textures. |
mipmap | number | 1 | The mipmap to replace. |
Returns
Nothing
See also
TextureData:setPixel
TextureData
Texture