import { TextureBase } from '@awayjs/renderer'; import { MethodBase, _Shader_MethodBase } from './MethodBase'; /** * EffectAlphaMaskMethod allows the use of an additional texture to specify the alpha value of the material. When used * with the secondary uv set, it allows for a tiled main texture with independently varying alpha (useful for water * etc). */ export declare class EffectAlphaMaskMethod extends MethodBase { private _texture; private _useSecondaryUV; static assetType: string; /** * @inheritDoc */ get assetType(): string; /** * The texture to use as the alpha mask. */ get texture(): TextureBase; set texture(value: TextureBase); /** * Indicated whether or not the secondary uv set for the mask. This allows mapping alpha independently, for * instance to tile the main texture and normal map while providing untiled alpha, for example to define the * transparency over a tiled water surface. */ get useSecondaryUV(): boolean; set useSecondaryUV(value: boolean); /** * Creates a new EffectAlphaMaskMethod object. * * @param texture The texture to use as the alpha mask. * @param useSecondaryUV Indicated whether or not the secondary uv set for the mask. This allows mapping alpha independently. */ constructor(texture: TextureBase, useSecondaryUV?: boolean); } import { ShaderRegisterCache, ShaderRegisterData, ShaderRegisterElement } from '@awayjs/stage'; import { ShaderBase, _Render_RenderableBase, ChunkVO } from '@awayjs/renderer'; /** * _Shader_EffectAlphaMaskMethod allows the use of an additional texture to specify the alpha value of the material. When used * with the secondary uv set, it allows for a tiled main texture with independently varying alpha (useful for water * etc). */ export declare class _Shader_EffectAlphaMaskMethod extends _Shader_MethodBase { private _method; private _shader; private _alphaMask; /** * Creates a new _Shader_EffectAlphaMaskMethod object. */ init(method: EffectAlphaMaskMethod, shader: ShaderBase): 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=EffectAlphaMaskMethod.d.ts.map