UNPKG

@types/three

Version:
36 lines (30 loc) 1.03 kB
import ContextNode from "../core/ContextNode.js"; import LightingModel, { LightingModelReflectedLight } from "../core/LightingModel.js"; import Node from "../core/Node.js"; import { ShaderNodeObject } from "../tsl/TSLCore.js"; import LightsNode from "./LightsNode.js"; export interface LightingContext { radiance: Node; irradiance: Node; iblIrradiance: Node; ambientOcclusion: Node; reflectedLight: LightingModelReflectedLight; backdrop: Node; backdropAlpha: Node; } export default class LightingContextNode extends ContextNode { lightingModelNode: LightingModel | null; backdropNode: Node | null; backdropAlphaNode: Node | null; constructor( lightsNode: LightsNode, lightingModel?: LightingModel | null, backdropNode?: Node | null, backdropAlphaNode?: Node | null, ); getContext(): LightingContext; } export const lightingContext: ( node: LightsNode, lightingModelNode?: LightingModel, ) => ShaderNodeObject<LightingContextNode>;