Inheritance: UnityEngine.MonoBehaviour
コード例 #1
0
ファイル: PropertyObserver.cs プロジェクト: bjporter/Polynaut
 // Update the internal state.
 public void Update(Obscurance target, Camera camera)
 {
     _downsampling = target.downsampling;
     _ambientOnly  = target.ambientOnly;
     _pixelWidth   = camera.pixelWidth;
     _pixelHeight  = camera.pixelHeight;
 }
コード例 #2
0
 // 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;
 }
コード例 #3
0
ファイル: PropertyObserver.cs プロジェクト: bjporter/Polynaut
 // 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);
 }
コード例 #4
0
 // 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;
 }