Esempio n. 1
0
 static DebugMatsSpectrum()
 {
     for (int i = 0; i < 100; i++)
     {
         DebugMatsSpectrum.spectrumMatsTranparent[i] = MatsFromSpectrum.Get(DebugMatsSpectrum.DebugSpectrumWithOpacity(0.25f), (float)i / 100f);
         DebugMatsSpectrum.spectrumMatsOpaque[i]     = MatsFromSpectrum.Get(DebugMatsSpectrum.DebugSpectrumWithOpacity(1f), (float)i / 100f);
     }
 }
 static DebugMatsSpectrum()
 {
     DebugMatsSpectrum.spectrumMatsTranparent = new Material[100];
     DebugMatsSpectrum.spectrumMatsOpaque     = new Material[100];
     DebugMatsSpectrum.DebugSpectrum          = new Color[5]
     {
         new Color(0.75f, 0f, 0f),
         new Color(0.5f, 0.3f, 0f),
         new Color(0f, 1f, 0f),
         new Color(0f, 0f, 1f),
         new Color(0.7f, 0f, 1f)
     };
     for (int i = 0; i < 100; i++)
     {
         DebugMatsSpectrum.spectrumMatsTranparent[i] = MatsFromSpectrum.Get(DebugMatsSpectrum.DebugSpectrumWithOpacity(0.25f), (float)((float)i / 100.0));
         DebugMatsSpectrum.spectrumMatsOpaque[i]     = MatsFromSpectrum.Get(DebugMatsSpectrum.DebugSpectrumWithOpacity(1f), (float)((float)i / 100.0));
     }
 }
Esempio n. 3
0
 public static Material Get(Color[] spectrum, float val)
 {
     return(MatsFromSpectrum.Get(spectrum, val, ShaderDatabase.MetaOverlay));
 }