LoginSignup
1
1

More than 3 years have passed since last update.

Magic Leap Unity MLLightingTracker

Posted at

Magic Leap One では 照明などの光の情報の取得が可能です。

// 開始
MLResult result = MLLightingTracker.Start();
if (result.IsOk)
{
    ...
// 輝度取得
ushort luminance = MLLightingTracker.AverageLuminance;

// 色温度をRGBカラーで取得
Color color = MLLightingTracker.GlobalTemperatureColor;

** 参考 **
Light Tracking Example
https://creator.magicleap.com/learn/guides/sdk-example-light-tracking

UnityEngine.XR.MagicLeap.MLLightingTracker Class
https://developer-documentation.magicleap.com/public/v0.21.0/UnityAPI/class_unity_engine_1_1_x_r_1_1_magic_leap_1_1_m_l_lighting_tracker.html

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1