Files
aaf-systems-homepage/app/node_modules/three-good-godrays/build/illumPass.d.ts
2025-07-29 00:15:57 +01:00

22 lines
1.1 KiB
TypeScript

import { Pass, type Resizable } from 'postprocessing';
import * as THREE from 'three';
import type { GodraysPassParams } from './index';
export declare const GODRAYS_RESOLUTION_SCALE: number;
export interface GodraysIllumPassProps {
light: THREE.PointLight | THREE.DirectionalLight;
camera: THREE.PerspectiveCamera;
}
export declare class GodraysIllumPass extends Pass implements Resizable {
private material;
private shadowMapSet;
private props;
private lastParams;
private lightWorldPos;
constructor(props: GodraysIllumPassProps, params: GodraysPassParams);
setSize(width: number, height: number): void;
render(renderer: THREE.WebGLRenderer, _inputBuffer: THREE.WebGLRenderTarget, outputBuffer: THREE.WebGLRenderTarget, _deltaTime?: number | undefined, _stencilTest?: boolean | undefined): void;
setDepthTexture(depthTexture: THREE.Texture, depthPacking?: THREE.DepthPackingStrategies | undefined): void;
private updateLightParams;
updateUniforms({ light, camera }: GodraysIllumPassProps, params: GodraysPassParams): void;
}