@luma.gl/engine
Version:
3D Engine Components for luma.gl
26 lines • 1.1 kB
TypeScript
import { Device, Texture } from '@luma.gl/core';
import { DynamicTexture } from "../dynamic-texture/dynamic-texture.js";
import { ClipSpace, ClipSpaceProps } from "./clip-space.js";
/**
* Props for a Model that renders a bitmap into the "background", i.e covering the screen
*/
export type BackgroundTextureModelProps = ClipSpaceProps & {
/** id of this model */
id?: string;
/** The texture to render */
backgroundTexture: Texture | DynamicTexture;
/** If true, the texture is rendered into transparent areas of the screen only, i.e blended in where background alpha is small */
blend?: boolean;
};
/**
* Model that renders a bitmap into the "background", i.e covering the screen
*/
export declare class BackgroundTextureModel extends ClipSpace {
backgroundTexture: Texture;
constructor(device: Device, props: BackgroundTextureModelProps);
/** Update the background texture */
setProps(props: Partial<BackgroundTextureModelProps>): void;
predraw(): void;
updateScale(texture: Texture): void;
}
//# sourceMappingURL=billboard-texture-model.d.ts.map