import { DirectionalLight } from '../lights/DirectionalLight'; import { ShadowMethodBase, _Shader_ShadowMethodBase } from './ShadowMethodBase'; /** * ShadowSoftMethod provides a soft shadowing technique by randomly distributing * sample points. */ export declare class ShadowSoftMethod extends ShadowMethodBase { private _range; private _numSamples; private _offsets; static assetType: string; /** * @inheritDoc */ get assetType(): string; get offsets(): Array; /** * The amount of samples to take for dithering. Minimum 1, maximum 32. The * actual maximum may depend on the complexity of the shader. */ get numSamples(): number; set numSamples(value: number); /** * The range in the shadow map in which to distribute the samples. */ get range(): number; set range(value: number); /** * Creates a new DiffuseBasicMethod object. * * @param castingLight The light casting the shadows * @param numSamples The amount of samples to take for dithering. Minimum 1, * maximum 32. */ constructor(castingLight: DirectionalLight, numSamples?: number, range?: number); } import { ShaderRegisterCache, ShaderRegisterData, ShaderRegisterElement } from '@awayjs/stage'; import { LightingShader } from '../shaders/LightingShader'; /** * _Shader_ShadowSoftMethod provides a soft shadowing technique by randomly * distributing sample points. */ export declare class _Shader_ShadowSoftMethod extends _Shader_ShadowMethodBase { private _fragmentConstantsIndex; /** * Creates a new ShadowHardChunk. */ init(method: ShadowSoftMethod, shader: LightingShader): void; /** * @inheritDoc */ _initConstants(): void; /** * @inheritDoc */ _activate(): void; /** * @inheritDoc */ _getFragmentCode(targetReg: ShaderRegisterElement, registerCache: ShaderRegisterCache, sharedRegisters: ShaderRegisterData): string; } //# sourceMappingURL=ShadowSoftMethod.d.ts.map