Example #1
0
 public void UpdateVisibility(float _fogLightness, FColor _ambient)
 {
     FinalLighted = Lighted.Screen(_ambient).Multiply(Visibility);
     if (FinalLighted.Lightness() > _fogLightness)
     {
         IsVisibleNow = true;
         if (!IsSeenBefore)
         {
             IsSeenBefore = true;
             m_mapBlock.SeenCells[InBlockCoords.Y] |= m_seenMask;
         }
     }
 }
Example #2
0
 void Emission(bool enabled)
 {
     if (enabled)
     {
         Particles.SetFloat("_Intens", 3);
         Lines.SetFloat("_Intens", 1);
         Lighted.SetFloat("_Intens", 2.5f);
     }
     else
     {
         Particles.SetFloat("_Intens", 1f);
         Lines.SetFloat("_Intens", 0.5f);
         Lighted.SetFloat("_Intens", 1f);
     }
 }