@playcanvas/react
Version:
A React renderer for PlayCanvas – build interactive 3D applications using React's declarative paradigm.
36 lines (35 loc) • 909 B
TypeScript
export class ShadowCatcher extends Script {
/**
* The shadow distance of the shadow catcher light.
* @type {number}
*/
shadowDistance: number;
/**
* The VSM blur size of the shadow catcher light.
* @type {number}
*/
vsmBlurSize: number;
/**
* The width of the shadow catcher.
* @type {number}
*/
width: number;
/**
* The depth of the shadow catcher.
* @type {number}
*/
depth: number;
/** @type {Layer|null} */
layer: Layer | null;
/** @type {StandardMaterial|null} */
material: StandardMaterial | null;
/** @type {Entity|null} */
plane: Entity | null;
/** @type {Entity|null} */
light: Entity | null;
initialize(): void;
}
import { Script } from 'playcanvas';
import { Layer } from 'playcanvas';
import { StandardMaterial } from 'playcanvas';
import { Entity } from 'playcanvas';