UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

20 lines 699 B
import { ArrayNumber4, WebglAttributeType, WebglUniformType } from "../types"; import { TgdVec4 } from "../math"; import { TgdMaterial } from "./material"; import { TgdCodeBloc } from "../shader/code"; export type TgdMaterialFlatOptions = Partial<{ color: ArrayNumber4 | TgdVec4; }>; export declare class TgdMaterialFlat extends TgdMaterial { readonly varyings: { [name: string]: WebglAttributeType; }; readonly uniforms: { [name: string]: WebglUniformType; }; readonly fragmentShaderCode: TgdCodeBloc; readonly vertexShaderCode: TgdCodeBloc; constructor(options?: TgdMaterialFlatOptions); setUniforms(): void; } //# sourceMappingURL=flat.d.ts.map