private static void EnableDirectionalLight(DirectionalLight directionalLight, Light light) { directionalLight.Enabled = true; directionalLight.DiffuseColor = light.color * light.intensity * 2; directionalLight.Direction = light.transform.forward; }
private static void EnableDirectionalLight(DirectionalLight directionalLight, Light light, float specularFraction) { directionalLight.Enabled = true; directionalLight.DiffuseColor = light.color * light.intensity * 2; directionalLight.Direction = light.transform.forward; directionalLight.SpecularColor = light.color * specularFraction; }