Texture2D.Compress(boolean highQuality)
Compress texture into DXT format.
Parameters:
Name | Type | Description |
---|---|---|
highQuality | boolean | Passing true for highQuality parameter will dither the source texture during compression, which helps to reduce compression artifacts but is slightly slower. |
Usage
---@type Texture2D
local texture2d;
---@type boolean
local highQuality;
texture2d.Compress(highQuality)
Extra Detail
Use this to compress textures generated at runtime. Compressed textures use less graphics memory and are faster to render.