import { TextureBase } from '@awayjs/renderer'; import { MethodBase, _Shader_MethodBase } from './MethodBase'; /** * AmbientBasicMethod provides the default shading method for uniform ambient lighting. */ export declare class AmbientBasicMethod extends MethodBase { private _alpha; _texture: TextureBase; private _strength; static assetType: string; /** * @inheritDoc */ get assetType(): string; /** * Creates a new AmbientBasicMethod object. */ constructor(); /** * The strength of the ambient reflection of the surface. */ get strength(): number; set strength(value: number); /** * The alpha component of the surface. */ get alpha(): number; set alpha(value: number); /** * The texture to use to define the diffuse reflection color per texel. */ get texture(): TextureBase; set texture(value: TextureBase); /** * @inheritDoc */ copyFrom(method: MethodBase): void; } import { ShaderRegisterCache, ShaderRegisterData, ShaderRegisterElement } from '@awayjs/stage'; import { _Render_RenderableBase, ShaderBase, _Shader_TextureBase, ChunkVO } from '@awayjs/renderer'; /** * _Shader_AmbientBasicMethod provides the default shading method for uniform ambient lighting. */ export declare class _Shader_AmbientBasicMethod extends _Shader_MethodBase { protected _method: AmbientBasicMethod; protected _shader: ShaderBase; protected _texture: _Shader_TextureBase; private _colorIndex; /** * Creates a new _Shader_AmbientBasicMethod object. */ init(method: AmbientBasicMethod, shader: ShaderBase): void; onInvalidate(): void; /** * */ onClear(): void; /** * @inheritDoc */ _initVO(chunkVO: ChunkVO): void; /** * @inheritDoc */ _initConstants(): void; /** * @inheritDoc */ _getFragmentCode(targetReg: ShaderRegisterElement, registerCache: ShaderRegisterCache, sharedRegisters: ShaderRegisterData): string; /** * @inheritDoc */ _activate(): void; _setRenderState(renderState: _Render_RenderableBase): void; } //# sourceMappingURL=AmbientBasicMethod.d.ts.map