Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/renderers/webgl/WebGLLights.js>WebGLLights

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class WebGLLights
import { WebGLLights } from "https://deno.land/x/threejs_4_deno@v121/src/renderers/webgl/WebGLLights.js";

Constructors

new
WebGLLights(
gl: WebGLRenderingContext,
properties: any,
info: any,
)

Properties

state: { version: number; hash: { directionalLength: number; pointLength: number; spotLength: number; rectAreaLength: number; hemiLength: number; numDirectionalShadows: number; numPointShadows: number; numSpotShadows: number; }; ambient: Array<number>; probe: Array<any>; directional: Array<any>; directionalShadow: Array<any>; directionalShadowMap: Array<any>; directionalShadowMatrix: Array<any>; spot: Array<any>; spotShadow: Array<any>; spotShadowMap: Array<any>; spotShadowMatrix: Array<any>; rectArea: Array<any>; point: Array<any>; pointShadow: Array<any>; pointShadowMap: Array<any>; pointShadowMatrix: Array<any>; hemi: Array<any>; }

Methods

get(light: any): any
setup(
lights: any,
shadows: any,
camera: any,
): void