[原创.数据可视化系列之十六]cesium文字清晰的问题

Thankyou for the explanation.


https://stackoverflow.com/questions/33784256/cesium-label-blurred

A workaround may be to have a perfect correlation between font textures pixels and the render buffer pixels; with this it should be possible to enable anti aliasing without causing blurring and also should reduce the artifacts when moving the camera around. This should also improve image screen space rendering as long as image and fonts are not scaled.

By rounding screen space "pixel" coordinate before transforming to normalized (0..1) screen space in BillboardCollectionVS.js shader (line 225) the rendering improves but it is not perfect:

gl_Position = czm_viewportOrthographic * vec4(positionWC.xy, -positionWC.z, 1.0);

to

gl_Position = czm_viewportOrthographic * vec4(floor(positionWC.xy+0.5), -positionWC.z, 1.0);

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 这是一座闻着风都可以做梦的城、我们时常会被一些细小的柔情与感动潜入心底、忘了自己其实也只是小城的过客、从哪里来还要...
    陈琳琳阅读 165评论 0 0
  • 每晚睡前,原谅所有的人和事。闭上眼睛,清理你的心,过去的就让它过去吧。无论今天发生多么糟糕的事,都不应该感到悲伤。...
    夕柏玟阅读 211评论 2 9
  • 2015年9月20日即国庆前夕,二姐的第二家美容院开张了。剪彩当天,二姐熨着一头小卷发,穿着一身黑色连衣裙,配着红...
    前方有路阅读 300评论 6 6
  • 相信每一个做互联网的人都记得“雷布斯”关于风口的猪的名言,在没有了最后一道屏障以后,传统企业该如何在互联网大潮中...
    慕容随风阅读 338评论 0 2