mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
27 lines (23 loc) • 632 B
text/typescript
import ILightBase, { lightBaseDefaults, lightBaseSchema } from "./ILightBase"
import Defaults from "./utils/Defaults"
import { ExtractProps } from "./utils/extractProps"
export default interface ISpotLight extends ILightBase {
angle: number
penumbra: number
decay: number
distance: number
}
export const spotLightSchema: Required<ExtractProps<ISpotLight>> = {
...lightBaseSchema,
angle: Number,
penumbra: Number,
decay: Number,
distance: Number
}
export const spotLightDefaults: Defaults<ISpotLight> = {
...lightBaseDefaults,
angle: 1,
penumbra: 0,
decay: 1,
distance: 0
}