Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/threejs_4_deno/src/Three.d.ts>LOD

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class LOD
extends Object3D
import { LOD } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";

Constructors

new
LOD()

Properties

autoUpdate: boolean
readonly
isLOD: true
levels: { distance: number; object: Object3D; }[]
deprecated
objects: any[]
type: "LOD"

Methods

addLevel(object: Object3D, distance?: number): this
getCurrentLevel(): number
getObjectForDistance(distance: number): Object3D | null
raycast(raycaster: Raycaster, intersects: Intersection[]): void
toJSON(meta: any): any
update(camera: Camera): void