Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/threejs_4_deno/src/Three.js>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.js";

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