UNPKG

three-virtual-geometry

Version:

Virtual geometry for three.js WebGPU: automatic cluster LOD and GPU-driven culling for billions of triangles. Independent implementation, not affiliated with Epic Games.

11 lines (10 loc) • 763 B
import * as THREE from 'three/webgpu'; /** True when `toNodeMaterial` can convert the material (node materials, and the classic mesh materials). */ export declare function canConvertToNodeMaterial(material: THREE.Material): boolean; /** * The node-material equivalent of a classic mesh material: MeshStandardMaterial -> MeshStandardNodeMaterial, * and likewise for Physical, Phong, Lambert, Basic, Toon, Matcap and Normal. Every property is copied (colors, * maps and their texture objects, transparency, alphaTest, side, blending, userData, ...). Node materials are * returned as they are; materials without a node equivalent (ShaderMaterial, ...) return null. */ export declare function toNodeMaterial(material: THREE.Material): THREE.NodeMaterial | null;