import { Effect } from "postprocessing"; export declare enum RampType { Linear = 0, Radial = 1, MirroredLinear = 2 } export type RampEffectOptions = { /** * Type of ramp gradient. */ rampType: RampType; /** * Starting point of the ramp gradient in normalized coordinates. * * Ranges from `[0 - 1]` as `[x, y]`. Default is `[0.5, 0.5]`. */ rampStart: [number, number]; /** * Ending point of the ramp gradient in normalized coordinates. * * Ranges from `[0 - 1]` as `[x, y]`. Default is `[1, 1]` */ rampEnd: [number, number]; /** * Color at the starting point of the gradient. * * Default is black: `[0, 0, 0, 1]` */ startColor: [number, number, number, number]; /** * Color at the ending point of the gradient. * * Default is white: `[1, 1, 1, 1]` */ endColor: [number, number, number, number]; /** * Bias for the interpolation curve when both bias and gain are 0.5. * * Ranges from `[0 - 1]`. Default is `0.5`. */ rampBias: number; /** * Gain for the interpolation curve when both bias and gain are 0.5. * * Ranges from `[0 - 1]`. Default is `0.5`. */ rampGain: number; /** * When enabled, the ramp gradient is used as an effect mask, and colors are ignored. * * Default is `false`. */ rampMask: boolean; /** * Controls whether the ramp gradient is inverted. * * When disabled, rampStart is transparent and rampEnd is opaque. * * Default is `false`. */ rampInvert: boolean; }; export declare class RampEffect extends Effect { state: RampEffectOptions; constructor({ /** * Type of ramp gradient. */ rampType, /** * Starting point of the ramp gradient in normalized coordinates. * * Ranges from `[0 - 1]` as `[x, y]`. Default is `[0.5, 0.5]`. */ rampStart, /** * Ending point of the ramp gradient in normalized coordinates. * * Ranges from `[0 - 1]` as `[x, y]`. Default is `[1, 1]` */ rampEnd, /** * Color at the starting point of the gradient. * * Default is black: `[0, 0, 0, 1]` */ startColor, /** * Color at the ending point of the gradient. * * Default is white: `[1, 1, 1, 1]` */ endColor, /** * Bias for the interpolation curve when both bias and gain are 0.5. * * Ranges from `[0 - 1]`. Default is `0.5`. */ rampBias, /** * Gain for the interpolation curve when both bias and gain are 0.5. * * Ranges from `[0 - 1]`. Default is `0.5`. */ rampGain, /** * When enabled, the ramp gradient is used as an effect mask, and colors are ignored. * * Default is `false`. */ rampMask, /** * Controls whether the ramp gradient is inverted. * * When disabled, rampStart is transparent and rampEnd is opaque. * * Default is `false`. */ rampInvert, }?: Partial); private updateUniform; updateUniforms(): void; updateState(state: Partial): void; }