protected override void UpdateRenderData(float deltaTime) { CPointLight pointLight = (CPointLight)m_renderLight; pointLight.LinearAttenuation = m_linearAttenuation; pointLight.ConstantAttenuation = m_constantAttenuation; pointLight.QuadraticAttenuation = m_quadraticAttenuation; pointLight.Range = m_range; pointLight.LightColor = LightColor; pointLight.Enabled = Enabled; pointLight.IsCastingShadows = CastShadow; }
protected override void CreateRenderLight() { CPointLight pointLight = new CPointLight(); pointLight.LinearAttenuation = m_linearAttenuation; pointLight.ConstantAttenuation = m_constantAttenuation; pointLight.QuadraticAttenuation = m_quadraticAttenuation; pointLight.Range = m_range; pointLight.LightColor = LightColor; pointLight.Enabled = Enabled; pointLight.IsCastingShadows = CastShadow; pointLight.Transform.Parent = m_transform; m_renderLight = pointLight; }