UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

37 lines (36 loc) 1.48 kB
import { Matrix3, Matrix4, Vector2, Vector3, Vector4 } from 'three'; import { GlConnectionPointType } from '../engine/nodes/utils/io/connections/Gl'; export declare const COMPONENTS_BY_GL_TYPE: { bool: undefined; int: undefined; float: undefined; vec2: string[]; vec3: string[]; vec4: string[]; mat3: undefined; mat4: undefined; sampler2D: undefined; sampler2DArray: undefined; sampler3D: undefined; samplerCube: undefined; SSSModel: undefined; SDFContext: undefined; SDFMaterial: undefined; }; export declare class ThreeToGl { static glType(glType: GlConnectionPointType, value: string): string; static any(value: any): string; static numeric_array(values: number[]): string; static mat4(vec: Matrix4 | string): string; static mat3(vec: Matrix3 | string): string; static vector4(vec: Vector4 | string): string; static vector3(vec: Vector3 | string): string; static vector2(vec: Vector2 | string): string; static vector3_float(vec: Vector3 | string, num: number | string): string; static float4(x: number | string, y: number | string, z: number | string, w: number | string): string; static float3(x: number | string, y: number | string, z: number | string): string; static float2(x: number | string, y: number | string): string; static float(x: number | string): string; static integer(x: number | string): string; static bool(x: boolean | string): string; }