{"id":2623,"date":"2024-03-01T02:59:56","date_gmt":"2024-02-29T18:59:56","guid":{"rendered":"https:\/\/www.clonefactor.com\/wordpress\/?p=2623"},"modified":"2024-03-01T02:59:57","modified_gmt":"2024-02-29T18:59:57","slug":"fxaa-make-ui-blur-issue","status":"publish","type":"post","link":"https:\/\/www.clonefactor.com\/wordpress\/program\/unity3d\/2623\/","title":{"rendered":"FXAA make UI blur issue."},"content":{"rendered":"\n<h2>UGUI text blur, due to Anti-aliasing filter<\/h2>\n<p>After Unity3d changed the camera setup. the UGUI text will be blur by Anit-ailasing (FXAA\/SMAA).<\/p>\n<p>the solution was simple, stop using the main camera to render UI,<\/p>\n<p>you will got another problem, but we can override from camera&#8217;s debug mode.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2626 alignnone size-full\" src=\"https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-1.png\" alt=\"\" width=\"1920\" height=\"1114\" srcset=\"https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-1.png 1920w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-1-300x174.png 300w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-1-1024x594.png 1024w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-1-768x446.png 768w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-1-1536x891.png 1536w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-1-517x300.png 517w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h2>Solution<\/h2>\n<p>To solve this, you will need to do the following step.<\/p>\n<ol>\n<li>Create another camera for your UIs. if you already using the second camera for your UI&#8217;s remove it from main camera&#8217;s &#8220;stack&#8221;<\/li>\n<li>Switch the &#8220;UI Camera&#8221; into debug mode, set &#8220;Clear Flags&#8221; to option &#8220;Don&#8217;t Clear&#8221; (ref screenshot)<\/li>\n<li>make sure the Depth are higher then &#8220;main camera&#8221;, therefor the &#8220;UI Camera&#8221; will render after te main camera complete render.<\/li>\n<li>make sure the &#8220;UI Camera&#8221; was setted to &#8220;Base Camera&#8221;, don&#8217;t use the new type &#8220;Overlay&#8221;.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1134\" data-id=\"2625\" src=\"https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image.png\" alt=\"\" class=\"wp-image-2625\" srcset=\"https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image.png 1920w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-300x177.png 300w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-1024x605.png 1024w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-768x454.png 768w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-1536x907.png 1536w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2024\/03\/image-508x300.png 508w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/figure>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>UGUI text blur, due to Anti-aliasing filter After  &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,106],"tags":[],"class_list":["post-2623","post","type-post","status-publish","format-standard","hentry","category-unity3d","category-devlog"],"_links":{"self":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts\/2623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2623"}],"version-history":[{"count":1,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts\/2623\/revisions"}],"predecessor-version":[{"id":2627,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts\/2623\/revisions\/2627"}],"wp:attachment":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}