|
|
|
|
|
|
{ |
|
|
|
Light m_Light; |
|
|
|
|
|
|
|
float? m_Brightness; |
|
|
|
public float? brightness { get; private set; } |
|
|
|
public float? Brightness |
|
|
|
{ |
|
|
|
get { return m_Brightness; } |
|
|
|
} |
|
|
|
public float? colorTemperature { get; private set; } |
|
|
|
float? m_ColorTemperature; |
|
|
|
|
|
|
|
public float? ColorTemperature |
|
|
|
{ |
|
|
|
get { return m_ColorTemperature; } |
|
|
|
} |
|
|
|
|
|
|
|
Color? m_ColorCorrection; |
|
|
|
|
|
|
|
public Color? ColorCorrection |
|
|
|
{ |
|
|
|
get { return m_ColorCorrection; } |
|
|
|
} |
|
|
|
public Color? colorCorrection { get; private set; } |
|
|
|
|
|
|
|
void Awake () |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
if (args.lightEstimation.averageBrightness.HasValue) |
|
|
|
{ |
|
|
|
m_Brightness = args.lightEstimation.averageBrightness.Value; |
|
|
|
m_Light.intensity = m_Brightness.Value; |
|
|
|
brightness = args.lightEstimation.averageBrightness.Value; |
|
|
|
m_Light.intensity = brightness.Value; |
|
|
|
m_ColorTemperature = args.lightEstimation.averageColorTemperature.Value; |
|
|
|
m_Light.colorTemperature = m_ColorTemperature.Value; |
|
|
|
colorTemperature = args.lightEstimation.averageColorTemperature.Value; |
|
|
|
m_Light.colorTemperature = colorTemperature.Value; |
|
|
|
m_ColorCorrection = args.lightEstimation.colorCorrection.Value; |
|
|
|
m_Light.color = m_ColorCorrection.Value; |
|
|
|
colorCorrection = args.lightEstimation.colorCorrection.Value; |
|
|
|
m_Light.color = colorCorrection.Value; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|