// 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); }
// Update the internal state. public void Update(Obscurance2 target, Camera camera) { _downsampling = target.downsampling; _pixelWidth = camera.pixelWidth; _pixelHeight = camera.pixelHeight; }