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
ALPHADiscards the red, green and blue components and reads the alpha component.RGBDiscards the alpha components and reads the red, green and blue components.RGBARed, green, blue and alpha components are read from the color buffer.LUMINANCEEach color component is a luminance component, alpha is 1.0.LUMINANCE_ALPHAEach component is a luminance/alpha component.DEPTH_COMPONENTWhen using the WEBGL_depth_texture extension:DEPTH_STENCILWhen using the WEBGL_depth_texture extension:SRGB_EXTWhen using the EXT_sRGB extension:SRGB_ALPHA_EXTWhen using the EXT_sRGB extension:R8using a WebGL 2 contextR16Fusing a WebGL 2 contextR32Fusing a WebGL 2 contextR8UIusing a WebGL 2 contextRG8using a WebGL 2 contextRG16Fusing a WebGL 2 contextRG32Fusing a WebGL 2 contextRG8UIusing a WebGL 2 contextRG16UIusing a WebGL 2 contextRG32UIusing a WebGL 2 contextRGB8using a WebGL 2 contextSRGB8using a WebGL 2 contextRGB565using a WebGL 2 contextR11F_G11F_B10Fusing a WebGL 2 contextRGB9_E5using a WebGL 2 contextRGB16Fusing a WebGL 2 contextRGB32Fusing a WebGL 2 contextRGB8UIusing a WebGL 2 contextRGBA8using a WebGL 2 contextRGB5_A1using a WebGL 2 contextRGB10_A2using a WebGL 2 contextRGBA4using a WebGL 2 contextRGBA16Fusing a WebGL 2 contextRGBA32Fusing a WebGL 2 contextRGBA8UIusing a WebGL 2 contextSee
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D