From 294356e22658cb6a6447bdcf8ae263ff3c9c92d3 Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 1 Mar 2018 15:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5set=20get?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DatabaseServices/PointLight.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/DatabaseServices/PointLight.ts b/src/DatabaseServices/PointLight.ts index 3cc981711..4cd112ace 100644 --- a/src/DatabaseServices/PointLight.ts +++ b/src/DatabaseServices/PointLight.ts @@ -32,6 +32,18 @@ export class PointLight extends Light this.m_Distance = 100; } + get Decay(): number + { + return this.m_Decay; + } + set Decay(decay: number) + { + this.WriteAllObjectRecord(); + this.m_Decay = decay; + + this.Update(); + } + protected m_Light: THREE.PointLight; Draw(renderType: RenderType = RenderType.Wireframe): Object3D {