MangaDirectionalLight
This class is used to specify the camera to render depth map texture for calculating shadow later.
So, its properties are the same as
OrthographicCamera.
Below’s the code defining
MangaDirectionalLight
// /src/light/MangaDirectionalLight.ts
import * as THREE from 'three'
class MangaDirectionalLight extends THREE.OrthographicCamera {
constructor(
left?: number,
right?: number,
top?: number,
bottom?: number,
near?: number,
far?: number
) {
super(left, right, top, bottom, near, far)
}
}
export default MangaDirectionalLight