Beispiel #1
0
        internal PunctualLight(PunctualLightType ltype)
        {
            _type = ltype.ToString().ToLowerInvariant();

            if (ltype == PunctualLightType.Spot)
            {
                _spot = new PunctualLightSpot();
            }
        }
Beispiel #2
0
        internal PunctualLight(PunctualLightType ltype)
        {
            #pragma warning disable CA1308 // Normalize strings to uppercase
            _type = ltype.ToString().ToLowerInvariant();
            #pragma warning restore CA1308 // Normalize strings to uppercase

            if (ltype == PunctualLightType.Spot)
            {
                _spot = new PunctualLightSpot();
            }
        }