UNPKG

mylingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

32 lines (28 loc) 758 B
import { WATERNORMALS_URL } from "../globals" import IObjectManager, { objectManagerDefaults, objectManagerSchema } from "./IObjectManager" import Defaults from "./utils/Defaults" import { ExtractProps } from "./utils/extractProps" export default interface IWater extends IObjectManager { shape: "plane" | "sphere" normalMap: string resolution: number speed: number } export const waterSchema: Required<ExtractProps<IWater>> = { ...objectManagerSchema, shape: String, normalMap: String, resolution: Number, speed: Number } export const waterDefaults: Defaults<IWater> = { ...objectManagerDefaults, shape: "plane", normalMap: WATERNORMALS_URL, resolution: 512, speed: 1, rotationX: -90 }