@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
25 lines • 924 B
TypeScript
import type { TgdLight } from "../light";
import { TgdVec3, TgdVec4 } from "../math";
import { TgdTexture2D, TgdTextureCube } from "../texture";
import type { ArrayNumber3, ArrayNumber4 } from "../types";
import { TgdMaterial } from "./material";
export type TgdMaterialGlobalOptions = Partial<{
color: TgdVec4 | ArrayNumber4 | TgdTexture2D;
lights: TgdLight[];
ambientColor: TgdVec3 | ArrayNumber3 | TgdTextureCube;
ambientIntensity: number;
specularExponent: number;
specularIntensity: number;
normalMap: TgdTexture2D;
}>;
export declare class TgdMaterialGlobal extends TgdMaterial {
private readonly options;
specularExponent: number;
specularIntensity: number;
private textureColor;
private mustDeleteTextureColor;
private textureAmbient;
private mustDeleteTextureAmbient;
constructor(options?: TgdMaterialGlobalOptions);
}
//# sourceMappingURL=global.d.ts.map