export class ShadowRendererDirectional { constructor(renderer: any, shadowRenderer: any); /** @type {Renderer} */ renderer: Renderer; /** @type {ShadowRenderer} */ shadowRenderer: ShadowRenderer; /** @type {GraphicsDevice} */ device: GraphicsDevice; /** * Ensure the shadow map exists and the light is marked visible. When a camera is supplied, * bind its shadow buffer even for cached shadows: forward lighting needs the sampler without * a shadow pass or cull (#3588). A light with shadow bounds binds the shadow buffer shared by * all cameras instead. * * @param {Light} light - The shadow-casting light. * @param {Camera|null} [camera] - The camera that will sample the shadow map, if any. */ prepareShadowMap(light: Light, camera?: Camera | null): void; /** * Fits the shadow camera of a directional light with shadow bounds to the bounds, and culls * its shadow casters. The square shadow map covers the bounds as seen from the light, with * square texels, and its depth range reaches toward the light to include the casters between * the light and the bounds. The receivers beyond the bounds, along the light, sample the * shadow at the far end of the range, so they are shadowed by the casters within the bounds * too. The shadow is shared by all cameras. prepareShadowMap(light) must have been called * first. * * @param {Light} light - The directional light with shadow bounds. * @param {LayerComposition} comp - The layer composition. */ cullBounds(light: Light, comp: LayerComposition): void; cull(light: any, comp: any, camera: any, casters?: any, cascadeMask?: number): void; generateSplitDistances(light: any, nearDist: any, farDist: any, distances: any): void; /** * @param {Light} light - The directional light. * @returns {number} Bit mask of cascades needing initialization or enabled by the overrides. */ getCascadeMask(light: Light): number; /** * Create a render pass for directional light shadow rendering for a specified camera. * * @param {Light} light - The directional light. * @param {Camera|null} camera - The camera, or null for a light with shadow bounds, which * renders one shadow for all cameras. * @returns {RenderPassShadowDirectional|null} - The render pass if the shadow rendering is * required, or null otherwise. */ getLightRenderPass(light: Light, camera: Camera | null): RenderPassShadowDirectional | null; } import type { Renderer } from './renderer.js'; import type { ShadowRenderer } from './shadow-renderer.js'; import type { GraphicsDevice } from '../../platform/graphics/graphics-device.js'; import type { Light } from '../light.js'; import type { Camera } from '../camera.js'; import type { LayerComposition } from '../composition/layer-composition.js'; import { RenderPassShadowDirectional } from './render-pass-shadow-directional.js';