Пример #1
0
 public double GetIntensity(double lambda, double delta, ELaserSampleMode sampleMode)
 {
     switch (specInt)
     {
         case ESpectralInterpolation.Linear:
             break;
         case ESpectralInterpolation.Peak:
             switch (sampleMode)
             {
                 case ELaserSampleMode.Lambda:
                     break;
                 case ELaserSampleMode.BoxFilter:
                     return BoxFilter(lambda, delta);
                 default:
                     break;
             }
             break;
         default:
             break;
     }
     return GetIntensity(lambda);
 }
 private void init()
 {
     spectralWidth = ESpectralWidth.ExtendedVisible;
     undefinedArea = EUndefinedArea.Static_0;
     colorChannels = EColorChannels.RGBA;
     textureWidth = ETextureSize.s512;
     textureHeight = ETextureSize.s512;
     spectraPerWidth = 4;
     unusedSpectra = EUnusedSpectra.Black;
     laserSampleMode = ELaserSampleMode.BoxFilter;
 }