mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-07 03:52:41 +08:00
28 lines
513 B
TypeScript
28 lines
513 B
TypeScript
import { RenderScene } from './render-scene';
|
|
|
|
export enum LightType {
|
|
DIRECTIONAL,
|
|
POINT,
|
|
}
|
|
|
|
export class Light {
|
|
|
|
public get type (): LightType {
|
|
return this._type;
|
|
}
|
|
|
|
public get name (): string {
|
|
return this._name;
|
|
}
|
|
|
|
private _scene: RenderScene;
|
|
private _type: LightType;
|
|
private _name: string;
|
|
|
|
constructor (scene: RenderScene, type: LightType, name: string) {
|
|
this._scene = scene;
|
|
this._type = type;
|
|
this._name = name;
|
|
}
|
|
}
|