예제 #1
0
        public static float ConvertAreaLightLuminanceToLumen(LightTypeExtent areaLightType, float luminance, float width, float height = 0)
        {
            switch (areaLightType)
            {
            case LightTypeExtent.Line:
                return(LightUtils.CalculateLineLightLuminanceToLumen(luminance, width));

            case LightTypeExtent.Rectangle:
                return(LightUtils.ConvertRectLightLuminanceToLumen(luminance, width, height));
            }
            return(luminance);
        }