UNPKG

853 BTypeScriptView Raw
1import { Color, ColorRepresentation } from "../math/Color.js";
2import { Material, MaterialParameters } from "./Material.js";
3
4export interface ShadowMaterialParameters extends MaterialParameters {
5 color?: ColorRepresentation | undefined;
6 fog?: boolean | undefined;
7}
8
9export class ShadowMaterial extends Material {
10 constructor(parameters?: ShadowMaterialParameters);
11
12 /**
13 * Read-only flag to check if a given object is of type {@link ShadowMaterial}.
14 * @remarks This is a _constant_ value
15 * @defaultValue `true`
16 */
17 readonly isShadowMaterial: true;
18
19 /**
20 * @default new THREE.Color( 0x000000 )
21 */
22 color: Color;
23
24 /**
25 * @default true
26 */
27 transparent: boolean;
28
29 /**
30 * Whether the material is affected by fog. Default is true.
31 * @default fog
32 */
33 fog: boolean;
34}