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