TextureFormat: "ALPHA" | "RGB" | "RGBA" | "LUMINANCE" | "LUMINANCE_ALPHA" | "DEPTH_COMPONENT" | "DEPTH_STENCIL" | "SRGB_EXT" | "SRGB_ALPHA_EXT" | "R8" | "R16F" | "R32F" | "R8UI" | "RG8" | "RG16F" | "RG32F" | "RG8UI" | "RG16UI" | "RG32UI" | "RGB8" | "SRGB8" | "RGB565" | "R11F_G11F_B10F" | "RGB9_E5" | "RGB16F" | "RGB32F" | "RGB8UI" | "RGBA8" | "RGB5_A1" | "RGB10_A2" | "RGBA4" | "RGBA16F" | "RGBA32F" | "RGBA8UI"
纹理颜色格式 A GLint specifying the color components in the texture
ALPHA
Discards the red, green and blue components and reads the alpha component.RGB
Discards the alpha components and reads the red, green and blue components.RGBA
Red, green, blue and alpha components are read from the color buffer.LUMINANCE
Each color component is a luminance component, alpha is 1.0.LUMINANCE_ALPHA
Each component is a luminance/alpha component.DEPTH_COMPONENT
When using the WEBGL_depth_texture extension:DEPTH_STENCIL
When using the WEBGL_depth_texture extension:SRGB_EXT
When using the EXT_sRGB extension:SRGB_ALPHA_EXT
When using the EXT_sRGB extension:R8
using a WebGL 2 contextR16F
using a WebGL 2 contextR32F
using a WebGL 2 contextR8UI
using a WebGL 2 contextRG8
using a WebGL 2 contextRG16F
using a WebGL 2 contextRG32F
using a WebGL 2 contextRG8UI
using a WebGL 2 contextRG16UI
using a WebGL 2 contextRG32UI
using a WebGL 2 contextRGB8
using a WebGL 2 contextSRGB8
using a WebGL 2 contextRGB565
using a WebGL 2 contextR11F_G11F_B10F
using a WebGL 2 contextRGB9_E5
using a WebGL 2 contextRGB16F
using a WebGL 2 contextRGB32F
using a WebGL 2 contextRGB8UI
using a WebGL 2 contextRGBA8
using a WebGL 2 contextRGB5_A1
using a WebGL 2 contextRGB10_A2
using a WebGL 2 contextRGBA4
using a WebGL 2 contextRGBA16F
using a WebGL 2 contextRGBA32F
using a WebGL 2 contextRGBA8UI
using a WebGL 2 contextSee
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D