効果
説明
このライブラリには、スカイボックスやフォグなどのワールドエフェクトを更新する関数が含まれている。種類
type NoFog = {type: 'none'}
type LinearFog = {
type: 'linear'
near: number
far: number
color: string
}
type ExponentialFog = {
type: 'exponential'
density: number
color: string
}
type Fog = NoFog | LinearFog | ExponentialFog
type Color = {type: 'color', color?: string}
type GradientStyle = 'linear' | 'radial'
type Gradient = {
type: 'gradient'
style?: GradientStyle
colors?: string[]
}
type Image<T = Resource> = {type: 'image', src?: T}
type NoSky = {type: 'none'}
type Sky<T = Resource> = Color | Gradient | Image<T> | NoSky