CompressedTexture
Jordan Delcros edited this page Jan 28, 2018
·
1 revision
The compressed texture allows you to defines gpu-optimized samplers to use from the gpu.
import { CompressedTexture } from "noobgl";
new CompressedTexture(context, data);
-
context
the WebGL2 context of a canvas. -
source
an array buffer of aWEBGL_compressed_texture_s3tc
compressed texture (more informations).DXT1
DXT5
The CompressedTexture
class extends the Texture
and inherits from all its properties and methods.
.update()
Update the texture on the gpu from the source.