import { TextureBase } from '@awayjs/renderer'; import { EffectEnvMapMethod, _Shader_EffectEnvMapMethod } from './EffectEnvMapMethod'; /** * EffectRefractionEnvMapMethod provides a method to add refracted transparency based on cube maps. */ export declare class EffectRefractionEnvMapMethod extends EffectEnvMapMethod { private _dispersionR; private _dispersionG; private _dispersionB; private _refractionIndex; static assetType: string; /** * @inheritDoc */ get assetType(): string; /** * The refractive index of the material. */ get refractionIndex(): number; set refractionIndex(value: number); /** * The amount of chromatic dispersion of the red channel. Defaults to 0 (none). */ get dispersionR(): number; set dispersionR(value: number); /** * The amount of chromatic dispersion of the green channel. Defaults to 0 (none). */ get dispersionG(): number; set dispersionG(value: number); /** * The amount of chromatic dispersion of the blue channel. Defaults to 0 (none). */ get dispersionB(): number; set dispersionB(value: number); /** * Creates a new EffectRefractionEnvMapMethod object. Example values for dispersion are: dispersionR: -0.03, dispersionG: -0.01, dispersionB: = .0015 * * @param envMap The environment map containing the refracted scene. * @param refractionIndex The refractive index of the material. * @param dispersionR The amount of chromatic dispersion of the red channel. Defaults to 0 (none). * @param dispersionG The amount of chromatic dispersion of the green channel. Defaults to 0 (none). * @param dispersionB The amount of chromatic dispersion of the blue channel. Defaults to 0 (none). */ constructor(envMap: TextureBase, alpha?: number, refractionIndex?: number, dispersionR?: number, dispersionG?: number, dispersionB?: number); } import { ShaderRegisterCache, ShaderRegisterData, ShaderRegisterElement } from '@awayjs/stage'; import { ChunkVO } from '@awayjs/renderer'; /** * EffectRefractionEnvMapMethod provides a method to add refracted transparency based on cube maps. */ export declare class _Shader_EffectRefractionEnvMapMethod extends _Shader_EffectEnvMapMethod { private _useDispersion; /** * @inheritDoc */ _initVO(chunkVO: ChunkVO): void; /** * @inheritDoc */ _getFragmentCode(targetReg: ShaderRegisterElement, registerCache: ShaderRegisterCache, sharedRegisters: ShaderRegisterData): string; protected _updateProperties(): void; } //# sourceMappingURL=EffectRefractionEnvMapMethod.d.ts.map