import { BasePass } from '../core/BasePass.js'; import type { PassRegistry } from '../core/BasePass.js'; export interface LUTOptions { /** Blend intensity — 0 = original, 1 = full LUT. Default 1. */ intensity?: number; /** * LUT size N (must match the texture supplied later). * Neutral LUT for an N³ cube: `LUT.createNeutral(N)`. * Default 32. */ lutSize?: number; } /** * LUT — 3-D Look-Up Table colour grading pass. * Blender Compositor: Color Balance node (via a baked LUT). * * Usage: * ```typescript * const lut = new LUT({ intensity: 1 }) * comp.add(lut) * await comp.compile() * * // Apply a custom grade — warm highlights + cool shadows * lut.setLUT(LUT.createFromFn(32, (r, g, b) => [ * r * 1.1 + b * 0.05, * g, * b * 1.1 + r * 0.02, * ])) * ``` * * The LUT texture is a Data3DTexture (Three.js r137+). * Use `LUT.createNeutral(N)` for a passthrough LUT, then modify the data. * Use `LUT.createFromFn(N, fn)` to build from a mapping function. */ export declare class LUT extends BasePass { readonly passType = "LUT"; parameters: { intensity: number; lutSize: number; }; /** The Three.js Data3DTexture (or null until setLUT() is called). */ lutTexture: unknown; private _pass; constructor(opts?: LUTOptions); _threePassDeps(): string[]; _buildThree(_w: number, _h: number, reg: PassRegistry): unknown; /** * Replace the active LUT texture at runtime. * Pass a Three.js Data3DTexture — see `LUT.createNeutral` / `LUT.createFromFn`. */ setLUT(tex: unknown): void; /** * Create a neutral (identity) N³ LUT Data3DTexture. * Requires a Three.js instance — pass in the THREE namespace. */ static createNeutral(THREE: Record, N?: number): unknown; /** * Create a Data3DTexture from a mapping function `(r,g,b) => [r,g,b]` * where all channels are in [0, 1]. */ static createFromFn(THREE: Record, N: number, fn: (r: number, g: number, b: number) => [number, number, number]): unknown; private static _makeData3DTexture; } //# sourceMappingURL=LUT.d.ts.map