Example #1
0
 // Check if it has to reset itself for property changes.
 public bool CheckNeedsReset(Obscurance2 target, Camera camera)
 {
     return
         (_downsampling != target.downsampling ||
          _pixelWidth != camera.pixelWidth ||
          _pixelHeight != camera.pixelHeight);
 }
Example #2
0
 // Update the internal state.
 public void Update(Obscurance2 target, Camera camera)
 {
     _downsampling = target.downsampling;
     _pixelWidth   = camera.pixelWidth;
     _pixelHeight  = camera.pixelHeight;
 }