UNPKG
@benev/construct
Version:
latest (0.0.0-y.0)
0.0.0-y.0
0.0.0-x.14
0.0.0-x.13
0.0.0-x.12
0.0.0-x.11
0.0.0-x.10
0.0.0-x.9
0.0.0-x.8
0.0.0-x.7
0.0.0-x.6
0.0.0-x.5
0.0.0-x.4
0.0.0-x.3
0.0.0-x.2
0.0.0-x.1
0.0.0-x.0
game map editing suite for babylon
github.com/benevolent-games/construct
benevolent-games/construct
@benev/construct
/
s
/
glb
/
parts
/
transforms
/
utils
/
lod_details.ts
15 lines
(8 loc)
•
253 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{
Node
}
from
"@gltf-transform/core"
export
const
lod_ratios = [
1.0
,
0.5
,
0.25
,
0.125
,
0.05
]
as
const
export
type
LOD
=
Node
|
undefined
export
type
LODs
= [
LOD
,
LOD
,
LOD
,
LOD
,
LOD
]
export
type
LodGroup
= {
lods
:
LODs
directives
?:
string
}