UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

17 lines 647 B
import type { TgdTexture2D } from "../texture"; import { TgdMaterial, type TgdMaterialOptions } from "./material"; export interface TgdMaterialMaskOptions extends Partial<TgdMaterialOptions> { texture: TgdTexture2D; flipY?: boolean; } /** * Reveal a background texture. * * You can use it in a techbnique to smooth your shading. * 1. Render your scene in a FBO with low resolution and the material you want. * 2. Use this material with the FBO texture to smooth the previous material. */ export declare class TgdMaterialMask extends TgdMaterial { constructor(options: TgdMaterialMaskOptions); } //# sourceMappingURL=mask.d.ts.map