UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

38 lines 1.23 kB
import { ArrayNumber4, WebglAttributeType, WebglUniformType } from "../types"; import { TgdVec4 } from "../math"; import { TgdMaterial } from "./material"; import { TgdCodeBloc } from "../shader/code"; import { TgdProgram } from "../program"; import { TgdPainterStateOptions } from "../painter"; export type TgdMaterialHullOptions = Partial<{ color: ArrayNumber4 | TgdVec4; /** * Thickness of the line in percentage of the height. * Default to 1 %. */ expansion: number; /** * The more you shift to the back, the more you will get only * the contours. * Default to 0.01 */ zShift: number; attNormal: string; }>; export declare class TgdMaterialHull extends TgdMaterial { color: TgdVec4; thickness: number; zShift: number; readonly varyings: { [name: string]: WebglAttributeType; }; readonly uniforms: { [name: string]: WebglUniformType; }; readonly fragmentShaderCode: TgdCodeBloc; readonly vertexShaderCode: TgdCodeBloc; protected readonly state: Partial<TgdPainterStateOptions>; constructor(options?: TgdMaterialHullOptions); setUniforms(program: TgdProgram): void; } //# sourceMappingURL=hull.d.ts.map