Spaces:
Sleeping
Sleeping
| export const REVISION: string; | |
| // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.button | |
| export enum MOUSE { | |
| LEFT = 0, | |
| MIDDLE = 1, | |
| RIGHT = 2, | |
| ROTATE = 0, | |
| DOLLY = 1, | |
| PAN = 2, | |
| } | |
| export enum TOUCH { | |
| ROTATE, | |
| PAN, | |
| DOLLY_PAN, | |
| DOLLY_ROTATE, | |
| } | |
| // GL STATE CONSTANTS | |
| export enum CullFace {} | |
| export const CullFaceNone: CullFace; | |
| export const CullFaceBack: CullFace; | |
| export const CullFaceFront: CullFace; | |
| export const CullFaceFrontBack: CullFace; | |
| // Shadowing Type | |
| export enum ShadowMapType {} | |
| export const BasicShadowMap: ShadowMapType; | |
| export const PCFShadowMap: ShadowMapType; | |
| export const PCFSoftShadowMap: ShadowMapType; | |
| export const VSMShadowMap: ShadowMapType; | |
| // MATERIAL CONSTANTS | |
| // side | |
| export enum Side {} | |
| export const FrontSide: Side; | |
| export const BackSide: Side; | |
| export const DoubleSide: Side; | |
| // shading | |
| export enum Shading {} | |
| export const FlatShading: Shading; | |
| export const SmoothShading: Shading; | |
| // blending modes | |
| export enum Blending {} | |
| export const NoBlending: Blending; | |
| export const NormalBlending: Blending; | |
| export const AdditiveBlending: Blending; | |
| export const SubtractiveBlending: Blending; | |
| export const MultiplyBlending: Blending; | |
| export const CustomBlending: Blending; | |
| // custom blending equations | |
| // (numbers start from 100 not to clash with other | |
| // mappings to OpenGL constants defined in Texture.js) | |
| export enum BlendingEquation {} | |
| export const AddEquation: BlendingEquation; | |
| export const SubtractEquation: BlendingEquation; | |
| export const ReverseSubtractEquation: BlendingEquation; | |
| export const MinEquation: BlendingEquation; | |
| export const MaxEquation: BlendingEquation; | |
| // custom blending destination factors | |
| export enum BlendingDstFactor {} | |
| export const ZeroFactor: BlendingDstFactor; | |
| export const OneFactor: BlendingDstFactor; | |
| export const SrcColorFactor: BlendingDstFactor; | |
| export const OneMinusSrcColorFactor: BlendingDstFactor; | |
| export const SrcAlphaFactor: BlendingDstFactor; | |
| export const OneMinusSrcAlphaFactor: BlendingDstFactor; | |
| export const DstAlphaFactor: BlendingDstFactor; | |
| export const OneMinusDstAlphaFactor: BlendingDstFactor; | |
| export const DstColorFactor: BlendingDstFactor; | |
| export const OneMinusDstColorFactor: BlendingDstFactor; | |
| // custom blending src factors | |
| export enum BlendingSrcFactor {} | |
| export const SrcAlphaSaturateFactor: BlendingSrcFactor; | |
| // depth modes | |
| export enum DepthModes {} | |
| export const NeverDepth: DepthModes; | |
| export const AlwaysDepth: DepthModes; | |
| export const LessDepth: DepthModes; | |
| export const LessEqualDepth: DepthModes; | |
| export const EqualDepth: DepthModes; | |
| export const GreaterEqualDepth: DepthModes; | |
| export const GreaterDepth: DepthModes; | |
| export const NotEqualDepth: DepthModes; | |
| // TEXTURE CONSTANTS | |
| // Operations | |
| export enum Combine {} | |
| export const MultiplyOperation: Combine; | |
| export const MixOperation: Combine; | |
| export const AddOperation: Combine; | |
| // Tone Mapping modes | |
| export enum ToneMapping {} | |
| export const NoToneMapping: ToneMapping; | |
| export const LinearToneMapping: ToneMapping; | |
| export const ReinhardToneMapping: ToneMapping; | |
| export const CineonToneMapping: ToneMapping; | |
| export const ACESFilmicToneMapping: ToneMapping; | |
| export const CustomToneMapping: ToneMapping; | |
| // Mapping modes | |
| export enum Mapping {} | |
| export const UVMapping: Mapping; | |
| export const CubeReflectionMapping: Mapping; | |
| export const CubeRefractionMapping: Mapping; | |
| export const EquirectangularReflectionMapping: Mapping; | |
| export const EquirectangularRefractionMapping: Mapping; | |
| export const CubeUVReflectionMapping: Mapping; | |
| // Wrapping modes | |
| export enum Wrapping {} | |
| export const RepeatWrapping: Wrapping; | |
| export const ClampToEdgeWrapping: Wrapping; | |
| export const MirroredRepeatWrapping: Wrapping; | |
| // Filters | |
| export enum TextureFilter {} | |
| export const NearestFilter: TextureFilter; | |
| export const NearestMipmapNearestFilter: TextureFilter; | |
| export const NearestMipMapNearestFilter: TextureFilter; | |
| export const NearestMipmapLinearFilter: TextureFilter; | |
| export const NearestMipMapLinearFilter: TextureFilter; | |
| export const LinearFilter: TextureFilter; | |
| export const LinearMipmapNearestFilter: TextureFilter; | |
| export const LinearMipMapNearestFilter: TextureFilter; | |
| export const LinearMipmapLinearFilter: TextureFilter; | |
| export const LinearMipMapLinearFilter: TextureFilter; | |
| // Data types | |
| export enum TextureDataType {} | |
| export const UnsignedByteType: TextureDataType; | |
| export const ByteType: TextureDataType; | |
| export const ShortType: TextureDataType; | |
| export const UnsignedShortType: TextureDataType; | |
| export const IntType: TextureDataType; | |
| export const UnsignedIntType: TextureDataType; | |
| export const FloatType: TextureDataType; | |
| export const HalfFloatType: TextureDataType; | |
| export const UnsignedShort4444Type: TextureDataType; | |
| export const UnsignedShort5551Type: TextureDataType; | |
| export const UnsignedInt248Type: TextureDataType; | |
| // Pixel formats | |
| export enum PixelFormat {} | |
| export const AlphaFormat: PixelFormat; | |
| export const RGBFormat: PixelFormat; | |
| export const RGBAFormat: PixelFormat; | |
| export const LuminanceFormat: PixelFormat; | |
| export const LuminanceAlphaFormat: PixelFormat; | |
| export const DepthFormat: PixelFormat; | |
| export const DepthStencilFormat: PixelFormat; | |
| export const RedFormat: PixelFormat; | |
| export const RedIntegerFormat: PixelFormat; | |
| export const RGFormat: PixelFormat; | |
| export const RGIntegerFormat: PixelFormat; | |
| export const RGBAIntegerFormat: PixelFormat; | |
| export const _SRGBFormat: PixelFormat; // fallback for WebGL 1 | |
| export const _SRGBAFormat: PixelFormat; // fallback for WebGL 1 | |
| // Internal Pixel Formats | |
| export type PixelFormatGPU = | |
| | 'ALPHA' | |
| | 'RGB' | |
| | 'RGBA' | |
| | 'LUMINANCE' | |
| | 'LUMINANCE_ALPHA' | |
| | 'RED_INTEGER' | |
| | 'R8' | |
| | 'R8_SNORM' | |
| | 'R8I' | |
| | 'R8UI' | |
| | 'R16I' | |
| | 'R16UI' | |
| | 'R16F' | |
| | 'R32I' | |
| | 'R32UI' | |
| | 'R32F' | |
| | 'RG8' | |
| | 'RG8_SNORM' | |
| | 'RG8I' | |
| | 'RG8UI' | |
| | 'RG16I' | |
| | 'RG16UI' | |
| | 'RG16F' | |
| | 'RG32I' | |
| | 'RG32UI' | |
| | 'RG32F' | |
| | 'RGB565' | |
| | 'RGB8' | |
| | 'RGB8_SNORM' | |
| | 'RGB8I' | |
| | 'RGB8UI' | |
| | 'RGB16I' | |
| | 'RGB16UI' | |
| | 'RGB16F' | |
| | 'RGB32I' | |
| | 'RGB32UI' | |
| | 'RGB32F' | |
| | 'RGB9_E5' | |
| | 'SRGB8' | |
| | 'R11F_G11F_B10F' | |
| | 'RGBA4' | |
| | 'RGBA8' | |
| | 'RGBA8_SNORM' | |
| | 'RGBA8I' | |
| | 'RGBA8UI' | |
| | 'RGBA16I' | |
| | 'RGBA16UI' | |
| | 'RGBA16F' | |
| | 'RGBA32I' | |
| | 'RGBA32UI' | |
| | 'RGBA32F' | |
| | 'RGB5_A1' | |
| | 'RGB10_A2' | |
| | 'RGB10_A2UI' | |
| | 'SRGB8_ALPHA8' | |
| | 'SRGB8' | |
| | 'DEPTH_COMPONENT16' | |
| | 'DEPTH_COMPONENT24' | |
| | 'DEPTH_COMPONENT32F' | |
| | 'DEPTH24_STENCIL8' | |
| | 'DEPTH32F_STENCIL8'; | |
| // Compressed texture formats | |
| // DDS / ST3C Compressed texture formats | |
| export enum CompressedPixelFormat {} | |
| export const RGB_S3TC_DXT1_Format: CompressedPixelFormat; | |
| export const RGBA_S3TC_DXT1_Format: CompressedPixelFormat; | |
| export const RGBA_S3TC_DXT3_Format: CompressedPixelFormat; | |
| export const RGBA_S3TC_DXT5_Format: CompressedPixelFormat; | |
| // PVRTC compressed './texture formats | |
| export const RGB_PVRTC_4BPPV1_Format: CompressedPixelFormat; | |
| export const RGB_PVRTC_2BPPV1_Format: CompressedPixelFormat; | |
| export const RGBA_PVRTC_4BPPV1_Format: CompressedPixelFormat; | |
| export const RGBA_PVRTC_2BPPV1_Format: CompressedPixelFormat; | |
| // ETC compressed texture formats | |
| export const RGB_ETC1_Format: CompressedPixelFormat; | |
| export const RGB_ETC2_Format: CompressedPixelFormat; | |
| export const RGBA_ETC2_EAC_Format: CompressedPixelFormat; | |
| // ASTC compressed texture formats | |
| export const RGBA_ASTC_4x4_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_5x4_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_5x5_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_6x5_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_6x6_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_8x5_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_8x6_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_8x8_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_10x5_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_10x6_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_10x8_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_10x10_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_12x10_Format: CompressedPixelFormat; | |
| export const RGBA_ASTC_12x12_Format: CompressedPixelFormat; | |
| // BPTC compressed texture formats | |
| export const RGBA_BPTC_Format: CompressedPixelFormat; | |
| // Loop styles for AnimationAction | |
| export enum AnimationActionLoopStyles {} | |
| export const LoopOnce: AnimationActionLoopStyles; | |
| export const LoopRepeat: AnimationActionLoopStyles; | |
| export const LoopPingPong: AnimationActionLoopStyles; | |
| // Interpolation | |
| export enum InterpolationModes {} | |
| export const InterpolateDiscrete: InterpolationModes; | |
| export const InterpolateLinear: InterpolationModes; | |
| export const InterpolateSmooth: InterpolationModes; | |
| // Interpolant ending modes | |
| export enum InterpolationEndingModes {} | |
| export const ZeroCurvatureEnding: InterpolationEndingModes; | |
| export const ZeroSlopeEnding: InterpolationEndingModes; | |
| export const WrapAroundEnding: InterpolationEndingModes; | |
| // Animation blending modes | |
| export enum AnimationBlendMode {} | |
| export const NormalAnimationBlendMode: AnimationBlendMode; | |
| export const AdditiveAnimationBlendMode: AnimationBlendMode; | |
| // Triangle Draw modes | |
| export enum TrianglesDrawModes {} | |
| export const TrianglesDrawMode: TrianglesDrawModes; | |
| export const TriangleStripDrawMode: TrianglesDrawModes; | |
| export const TriangleFanDrawMode: TrianglesDrawModes; | |
| // Texture Encodings | |
| export enum TextureEncoding {} | |
| export const LinearEncoding: TextureEncoding; | |
| export const sRGBEncoding: TextureEncoding; | |
| export const LogLuvEncoding: TextureEncoding; | |
| // Depth packing strategies | |
| export enum DepthPackingStrategies {} | |
| export const BasicDepthPacking: DepthPackingStrategies; | |
| export const RGBADepthPacking: DepthPackingStrategies; | |
| // Normal Map types | |
| export enum NormalMapTypes {} | |
| export const TangentSpaceNormalMap: NormalMapTypes; | |
| export const ObjectSpaceNormalMap: NormalMapTypes; | |
| export type ColorSpace = NoColorSpace | SRGBColorSpace | LinearSRGBColorSpace; | |
| export type NoColorSpace = ''; | |
| export type SRGBColorSpace = 'srgb'; | |
| export type LinearSRGBColorSpace = 'srgb-linear'; | |
| // Stencil Op types | |
| export enum StencilOp {} | |
| export const ZeroStencilOp: StencilOp; | |
| export const KeepStencilOp: StencilOp; | |
| export const ReplaceStencilOp: StencilOp; | |
| export const IncrementStencilOp: StencilOp; | |
| export const DecrementStencilOp: StencilOp; | |
| export const IncrementWrapStencilOp: StencilOp; | |
| export const DecrementWrapStencilOp: StencilOp; | |
| export const InvertStencilOp: StencilOp; | |
| // Stencil Func types | |
| export enum StencilFunc {} | |
| export const NeverStencilFunc: StencilFunc; | |
| export const LessStencilFunc: StencilFunc; | |
| export const EqualStencilFunc: StencilFunc; | |
| export const LessEqualStencilFunc: StencilFunc; | |
| export const GreaterStencilFunc: StencilFunc; | |
| export const NotEqualStencilFunc: StencilFunc; | |
| export const GreaterEqualStencilFunc: StencilFunc; | |
| export const AlwaysStencilFunc: StencilFunc; | |
| // usage types | |
| export enum Usage {} | |
| export const StaticDrawUsage: Usage; | |
| export const DynamicDrawUsage: Usage; | |
| export const StreamDrawUsage: Usage; | |
| export const StaticReadUsage: Usage; | |
| export const DynamicReadUsage: Usage; | |
| export const StreamReadUsage: Usage; | |
| export const StaticCopyUsage: Usage; | |
| export const DynamicCopyUsage: Usage; | |
| export const StreamCopyUsage: Usage; | |
| export enum GLSLVersion {} | |
| export const GLSL1: GLSLVersion; | |
| export const GLSL3: GLSLVersion; | |
| export type BuiltinShaderAttributeName = | |
| | 'position' | |
| | 'normal' | |
| | 'uv' | |
| | 'color' | |
| | 'skinIndex' | |
| | 'skinWeight' | |
| | 'instanceMatrix' | |
| | 'morphTarget0' | |
| | 'morphTarget1' | |
| | 'morphTarget2' | |
| | 'morphTarget3' | |
| | 'morphTarget4' | |
| | 'morphTarget5' | |
| | 'morphTarget6' | |
| | 'morphTarget7' | |
| | 'morphNormal0' | |
| | 'morphNormal1' | |
| | 'morphNormal2' | |
| | 'morphNormal3'; | |