Blury texture with FullscreenUI after resizing window

Hello there! I have small problem with texture getting blured after I resize window/canvas. I’m trying to add texture (184 x 24) with GUI.Image on AdvancedDynamicTexture.CreateFullscreenUI

https://www.babylonjs-playground.com/#YUGSEE

Welcome aboard!

When resizing, the underlying canvas of the dynamic texture used for the GUI is also resized, which I think trigger an internal recreation, and so your update of imageSmoothingEnabled is lost. You should re-set this property after the window is resized:

https://www.babylonjs-playground.com/#YUGSEE#1

2 Likes

I didn’t know about that. Thanks!