terriajs
Version:
Geospatial data visualization platform.
23 lines (19 loc) • 633 B
text/typescript
import ModelTraits from "../ModelTraits";
import primitiveTrait from "../Decorators/primitiveTrait";
export type Shadows = "CAST" | "RECEIVE" | "BOTH" | "NONE";
export default class ShadowTraits extends ModelTraits {
@primitiveTrait({
type: "string",
name: "Shadows",
description:
"Determines whether the tileset casts or receives shadows from each light source."
})
shadows: Shadows = "NONE";
@primitiveTrait({
type: "boolean",
name: "Show Shadow UI",
description:
"Determines whether the shadow UI component will be shown on the workbench item"
})
showShadowUi: boolean = true;
}