nanogl-gltf
Version:
14 lines (13 loc) • 549 B
TypeScript
import { GltfBaseMaterial } from "../../elements/Material";
import UnlitPass from 'nanogl-pbr/UnlitPass';
/**
* Simple material using nanogl-pbr UnlitPass.
* An Unlit shading is a shading that does not use lighting, metallic, roughness, ... but only a baseColor.
*/
export default class UnlitMaterial extends GltfBaseMaterial<UnlitPass> {
/**
* Creates a nanogl-pbr UnlitPass and attach basecolor texture with sampler and its strength factor, if defined.
* Also configure alpha rendering mode.
*/
setupMaterials(): void;
}