import { ImageBase } from '@awayjs/stage'; import { TextureBase } from '@awayjs/renderer'; import { MaterialBase } from './MaterialBase'; /** * BasicMaterial forms an abstract base class for the default shaded materials provided by Stage, * using material methods to define their appearance. */ export declare class BasicMaterial extends MaterialBase { static assetType: string; private _preserveAlpha; private _texture; /** * */ get assetType(): string; /** * Creates a new BasicMaterial object. * * @param texture The texture used for the material's albedo color. * @param smooth Indicates whether the texture should be filtered when sampled. Defaults to true. * @param repeat Indicates whether the texture should be tiled when sampled. Defaults to false. * @param mipmap Indicates whether or not any used textures should use mipmapping. Defaults to false. */ constructor(image?: ImageBase, alpha?: number); constructor(color?: number, alpha?: number); /** * Indicates whether alpha should be preserved - defaults to false */ get preserveAlpha(): boolean; set preserveAlpha(value: boolean); /** * The texture object to use for the albedo colour. */ get texture(): TextureBase; set texture(value: TextureBase); } import { _Render_MaterialBase, _Render_ElementsBase } from '@awayjs/renderer'; /** * RenderMaterialObject forms an abstract base class for the default shaded materials provided by Stage, * using material methods to define their appearance. */ export declare class _Render_BasicMaterial extends _Render_MaterialBase { private _pass; get material(): BasicMaterial; init(material: BasicMaterial, renderElements: _Render_ElementsBase): void; onClear(): void; /** * @inheritDoc */ _pUpdateRender(): void; } //# sourceMappingURL=BasicMaterial.d.ts.map