Skip to content

Commit

Permalink
Fix background image seams by bypassing cache for now (#749)
Browse files Browse the repository at this point in the history
Disable the cache for now
  • Loading branch information
andybak authored Jul 31, 2024
1 parent a029f0c commit c59f696
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/Scripts/GUI/LoadBackgroundImageButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

using System.IO;
using UnityEngine;
using UnityEngine.Localization;

Expand Down Expand Up @@ -54,7 +55,10 @@ override protected void OnButtonPressed()
}


SceneSettings.m_Instance.LoadCustomSkyboxFromCache(ReferenceImage.FilePath);
// TODO we had problems with seams when using the cached image.
// Likely related to mipmaps but I couldn't track down the cause.
// SceneSettings.m_Instance.LoadCustomSkyboxFromCache(ReferenceImage.FilePath);
SceneSettings.m_Instance.LoadCustomSkybox(Path.GetFileName(ReferenceImage.FilePath));
}

override public void ResetState()
Expand Down

0 comments on commit c59f696

Please sign in to comment.