Skip to content

Commit

Permalink
WebGLRenderer: Add support for WEBGL_render_shared_exponent. (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Mar 26, 2024
1 parent 22c05c4 commit 99ba015
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types/three/src/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export const HalfFloatType: 1016;
export const UnsignedShort4444Type: 1017;
export const UnsignedShort5551Type: 1018;
export const UnsignedInt248Type: 1020;
export const UnsignedInt5999Type: 35902;

export type AttributeGPUType = typeof FloatType | typeof IntType;

Expand All @@ -356,14 +357,17 @@ export type TextureDataType =
| typeof HalfFloatType
| typeof UnsignedShort4444Type
| typeof UnsignedShort5551Type
| typeof UnsignedInt248Type;
| typeof UnsignedInt248Type
| typeof UnsignedInt5999Type;

///////////////////////////////////////////////////////////////////////////////
// Pixel formats

/** {@link AlphaFormat} discards the red, green and blue components and reads just the alpha component. */
export const AlphaFormat: 1021;

export const RGBFormat: 1022;

/** {@link RGBAFormat} is the default and reads the red, green, blue and alpha components. */
export const RGBAFormat: 1023;

Expand Down Expand Up @@ -429,6 +433,7 @@ export const RGBAIntegerFormat: 1033;
*/
export type PixelFormat =
| typeof AlphaFormat
| typeof RGBFormat
| typeof RGBAFormat
| typeof LuminanceFormat
| typeof LuminanceAlphaFormat
Expand Down

0 comments on commit 99ba015

Please sign in to comment.