UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

34 lines 1.15 kB
import { WebglAttributeType, WebglUniformType } from "../types"; import { TgdMaterial } from "./material"; import { TgdCodeBloc } from "../shader/code"; import { TgdLight } from "../light"; import { TgdProgram } from "../program"; export type TgdMaterialFaceOrientationOptions = Partial<{ light: TgdLight; ambient: TgdLight; specularExponent: number; specularIntensity: number; }>; /** * This material is useful to debug meshes. * The outside faces are blue and the inside one are red. */ export declare class TgdMaterialFaceOrientation extends TgdMaterial { light: TgdLight; ambient: TgdLight; specularExponent: number; specularIntensity: number; readonly varyings: { [name: string]: WebglAttributeType; }; readonly uniforms: { [name: string]: WebglUniformType; }; readonly fragmentShaderCode: TgdCodeBloc; readonly vertexShaderCode: TgdCodeBloc; private readonly lightColor; private readonly ambientColor; constructor(options?: TgdMaterialFaceOrientationOptions); setUniforms(program: TgdProgram): void; } //# sourceMappingURL=face-orientation.d.ts.map