Inheritance: UnityEngine.MonoBehaviour
Esempio n. 1
0
 // Update the internal state.
 public void Update(Obscurance target, Camera camera)
 {
     _downsampling = target.downsampling;
     _ambientOnly  = target.ambientOnly;
     _pixelWidth   = camera.pixelWidth;
     _pixelHeight  = camera.pixelHeight;
 }
 // Update the internal state.
 public void Update(Obscurance target, Camera camera)
 {
     _downsampling = target.downsampling;
     _occlusionSource = target.occlusionSource;
     _ambientOnly = target.ambientOnly;
     _pixelWidth = camera.pixelWidth;
     _pixelHeight = camera.pixelHeight;
 }
Esempio n. 3
0
 // Check if it has to reset itself for property changes.
 public bool CheckNeedsReset(Obscurance target, Camera camera)
 {
     return
         (_downsampling != target.downsampling ||
          _ambientOnly != target.ambientOnly ||
          _pixelWidth != camera.pixelWidth ||
          _pixelHeight != camera.pixelHeight);
 }
 // Check if it has to reset itself for property changes.
 public bool CheckNeedsReset(Obscurance target, Camera camera)
 {
     return
         _downsampling != target.downsampling ||
         _occlusionSource != target.occlusionSource ||
         _ambientOnly != target.ambientOnly ||
         _pixelWidth != camera.pixelWidth ||
         _pixelHeight != camera.pixelHeight;
 }