It could be FXAA related. Have you tried turning FXAA off for both and comparing the difference?
Another possibility is the web version is using the window's devicePixelRatio to render to a small viewport than the screen, which can cause it to appear blurry after it is upsampled. It's possible that attribute is not part of the Electron viewer.
Check out this bullet in the Cesium 1.18 change log. Can you try including the code below and see if it makes a difference?
- Cesium now honors
window.devicePixelRatio
on browsers that support the CSS imageRendering
attribute. This greatly improves performance on mobile devices and high DPI displays by rendering at the browser-recommended resolution. This also reduces bandwidth usage and increases battery life in these cases. To enable the previous behavior, use the following code:if(Cesium.FeatureDetection.supportsImageRenderingPixelated()){
viewer.resolutionScale = window.devicePixelRatio;
}