UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

29 lines 957 B
import { TgdMaterial } from "./material"; import { TgdLight } from "../light"; import { TgdTexture2D, TgdTextureCube } from "../texture"; export type TgdMaterialGltfOptions = { textures: { normal: TgdTexture2D; albedo: TgdTexture2D; emission: TgdTexture2D; occlusion?: TgdTexture2D; metallicRoughness: TgdTexture2D; skybox: TgdTextureCube; }; }; export declare class TgdMaterialGltf extends TgdMaterial { light: TgdLight; ambient: TgdLight; specularExponent: number; specularIntensity: number; private readonly textureNormal; private readonly textureAlbedo; private readonly textureEmission; private readonly textureOcclusion; private readonly textureMetallicRoughness; private readonly textureSkybox; constructor(options: Partial<TgdMaterialGltfOptions> & { textures: TgdMaterialGltfOptions["textures"]; }); } //# sourceMappingURL=gltf.d.ts.map