For use with a texture's THREE.Texture.internalFormat property, these define how elements of a THREE.Texture, or texels, are stored on the GPU.
R8 stores the red component on 8 bits.
R8_SNORM stores the red component on 8 bits. The component is stored as normalized.
R8I stores the red component on 8 bits. The component is stored as an integer.
R8UI stores the red component on 8 bits. The component is stored as an unsigned integer.
R16I stores the red component on 16 bits. The component is stored as an integer.
R16UI stores the red component on 16 bits. The component is stored as an unsigned integer.
R16F stores the red component on 16 bits. The component is stored as floating point.
R32I stores the red component on 32 bits. The component is stored as an integer.
R32UI stores the red component on 32 bits. The component is stored as an unsigned integer.
R32F stores the red component on 32 bits. The component is stored as floating point.
RG8 stores the red and green components on 8 bits each.
RG8_SNORM stores the red and green components on 8 bits each. Every component is stored as normalized.
RG8I stores the red and green components on 8 bits each. Every component is stored as an integer.
RG8UI stores the red and green components on 8 bits each. Every component is stored as an unsigned integer.
RG16I stores the red and green components on 16 bits each. Every component is stored as an integer.
RG16UI stores the red and green components on 16 bits each. Every component is stored as an unsigned integer.
RG16F stores the red and green components on 16 bits each. Every component is stored as floating point.
RG32I stores the red and green components on 32 bits each. Every component is stored as an integer.
RG32UI stores the red and green components on 32 bits. Every component is stored as an unsigned integer.
RG32F stores the red and green components on 32 bits. Every component is stored as floating point.
RGB8 stores the red, green, and blue components on 8 bits each. RGB8_SNORM` stores the red, green, and blue components on 8 bits each. Every component is stored as normalized.
RGB8I stores the red, green, and blue components on 8 bits each. Every component is stored as an integer.
RGB8UI stores the red, green, and blue components on 8 bits each. Every component is stored as an unsigned integer.
RGB16I stores the red, green, and blue components on 16 bits each. Every component is stored as an integer.
RGB16UI stores the red, green, and blue components on 16 bits each. Every component is stored as an unsigned integer.
RGB16F stores the red, green, and blue components on 16 bits each. Every component is stored as floating point
RGB32I stores the red, green, and blue components on 32 bits each. Every component is stored as an integer.
RGB32UI stores the red, green, and blue components on 32 bits each. Every component is stored as an unsigned integer.
RGB32F stores the red, green, and blue components on 32 bits each. Every component is stored as floating point
R11F_G11F_B10F stores the red, green, and blue components respectively on 11 bits, 11 bits, and 10bits. Every component is stored as floating point.
RGB565 stores the red, green, and blue components respectively on 5 bits, 6 bits, and 5 bits.
RGB9_E5 stores the red, green, and blue components on 9 bits each.
RGBA8 stores the red, green, blue, and alpha components on 8 bits each.
RGBA8_SNORM stores the red, green, blue, and alpha components on 8 bits. Every component is stored as normalized.
RGBA8I stores the red, green, blue, and alpha components on 8 bits each. Every component is stored as an integer.
RGBA8UI stores the red, green, blue, and alpha components on 8 bits. Every component is stored as an unsigned integer.
RGBA16I stores the red, green, blue, and alpha components on 16 bits. Every component is stored as an integer.
RGBA16UI stores the red, green, blue, and alpha components on 16 bits. Every component is stored as an unsigned integer.
RGBA16F stores the red, green, blue, and alpha components on 16 bits. Every component is stored as floating point.
RGBA32I stores the red, green, blue, and alpha components on 32 bits. Every component is stored as an integer.
RGBA32UI stores the red, green, blue, and alpha components on 32 bits. Every component is stored as an unsigned integer.
RGBA32F stores the red, green, blue, and alpha components on 32 bits. Every component is stored as floating point.
RGB5_A1 stores the red, green, blue, and alpha components respectively on 5 bits, 5 bits, 5 bits, and 1 bit.
RGB10_A2 stores the red, green, blue, and alpha components respectively on 10 bits, 10 bits, 10 bits and 2 bits.
RGB10_A2UI stores the red, green, blue, and alpha components respectively on 10 bits, 10 bits, 10 bits and 2 bits. Every component is stored as an unsigned integer.
SRGB8 stores the red, green, and blue components on 8 bits each.
SRGB8_ALPHA8 stores the red, green, blue, and alpha components on 8 bits each.
DEPTH_COMPONENT16 stores the depth component on 16bits.
DEPTH_COMPONENT24 stores the depth component on 24bits.
DEPTH_COMPONENT32F stores the depth component on 32bits. The component is stored as floating point.
DEPTH24_STENCIL8 stores the depth, and stencil components respectively on 24 bits and 8 bits. The stencil component is stored as an unsigned integer.
DEPTH32F_STENCIL8 stores the depth, and stencil components respectively on 32 bits and 8 bits. The depth component is stored as floating point, and the stencil component as an unsigned integer.
Remark
Note that the texture must have the correct THREE.Texture.type set, as well as the correct THREE.Texture.format.
See
WebGLRenderingContext.texImage2D and WebGLRenderingContext.texImage3D for more details regarding the possible combination
of THREE.Texture.format, THREE.Texture.internalFormat, and THREE.Texture.type.
For use with a texture's THREE.Texture.internalFormat property, these define how elements of a THREE.Texture, or texels, are stored on the GPU.
R8stores the red component on 8 bits.R8_SNORMstores the red component on 8 bits. The component is stored as normalized.R8Istores the red component on 8 bits. The component is stored as an integer.R8UIstores the red component on 8 bits. The component is stored as an unsigned integer.R16Istores the red component on 16 bits. The component is stored as an integer.R16UIstores the red component on 16 bits. The component is stored as an unsigned integer.R16Fstores the red component on 16 bits. The component is stored as floating point.R32Istores the red component on 32 bits. The component is stored as an integer.R32UIstores the red component on 32 bits. The component is stored as an unsigned integer.R32Fstores the red component on 32 bits. The component is stored as floating point.RG8stores the red and green components on 8 bits each.RG8_SNORMstores the red and green components on 8 bits each. Every component is stored as normalized.RG8Istores the red and green components on 8 bits each. Every component is stored as an integer.RG8UIstores the red and green components on 8 bits each. Every component is stored as an unsigned integer.RG16Istores the red and green components on 16 bits each. Every component is stored as an integer.RG16UIstores the red and green components on 16 bits each. Every component is stored as an unsigned integer.RG16Fstores the red and green components on 16 bits each. Every component is stored as floating point.RG32Istores the red and green components on 32 bits each. Every component is stored as an integer.RG32UIstores the red and green components on 32 bits. Every component is stored as an unsigned integer.RG32Fstores the red and green components on 32 bits. Every component is stored as floating point.RGB8stores the red, green, and blue components on 8 bits each. RGB8_SNORM` stores the red, green, and blue components on 8 bits each. Every component is stored as normalized.RGB8Istores the red, green, and blue components on 8 bits each. Every component is stored as an integer.RGB8UIstores the red, green, and blue components on 8 bits each. Every component is stored as an unsigned integer.RGB16Istores the red, green, and blue components on 16 bits each. Every component is stored as an integer.RGB16UIstores the red, green, and blue components on 16 bits each. Every component is stored as an unsigned integer.RGB16Fstores the red, green, and blue components on 16 bits each. Every component is stored as floating pointRGB32Istores the red, green, and blue components on 32 bits each. Every component is stored as an integer.RGB32UIstores the red, green, and blue components on 32 bits each. Every component is stored as an unsigned integer.RGB32Fstores the red, green, and blue components on 32 bits each. Every component is stored as floating pointR11F_G11F_B10Fstores the red, green, and blue components respectively on 11 bits, 11 bits, and 10bits. Every component is stored as floating point.RGB565stores the red, green, and blue components respectively on 5 bits, 6 bits, and 5 bits.RGB9_E5stores the red, green, and blue components on 9 bits each.RGBA8stores the red, green, blue, and alpha components on 8 bits each.RGBA8_SNORMstores the red, green, blue, and alpha components on 8 bits. Every component is stored as normalized.RGBA8Istores the red, green, blue, and alpha components on 8 bits each. Every component is stored as an integer.RGBA8UIstores the red, green, blue, and alpha components on 8 bits. Every component is stored as an unsigned integer.RGBA16Istores the red, green, blue, and alpha components on 16 bits. Every component is stored as an integer.RGBA16UIstores the red, green, blue, and alpha components on 16 bits. Every component is stored as an unsigned integer.RGBA16Fstores the red, green, blue, and alpha components on 16 bits. Every component is stored as floating point.RGBA32Istores the red, green, blue, and alpha components on 32 bits. Every component is stored as an integer.RGBA32UIstores the red, green, blue, and alpha components on 32 bits. Every component is stored as an unsigned integer.RGBA32Fstores the red, green, blue, and alpha components on 32 bits. Every component is stored as floating point.RGB5_A1stores the red, green, blue, and alpha components respectively on 5 bits, 5 bits, 5 bits, and 1 bit.RGB10_A2stores the red, green, blue, and alpha components respectively on 10 bits, 10 bits, 10 bits and 2 bits.RGB10_A2UIstores the red, green, blue, and alpha components respectively on 10 bits, 10 bits, 10 bits and 2 bits. Every component is stored as an unsigned integer.SRGB8stores the red, green, and blue components on 8 bits each.SRGB8_ALPHA8stores the red, green, blue, and alpha components on 8 bits each.DEPTH_COMPONENT16stores the depth component on 16bits.DEPTH_COMPONENT24stores the depth component on 24bits.DEPTH_COMPONENT32Fstores the depth component on 32bits. The component is stored as floating point.DEPTH24_STENCIL8stores the depth, and stencil components respectively on 24 bits and 8 bits. The stencil component is stored as an unsigned integer.DEPTH32F_STENCIL8stores the depth, and stencil components respectively on 32 bits and 8 bits. The depth component is stored as floating point, and the stencil component as an unsigned integer.