{"id":709,"date":"2019-11-14T13:58:31","date_gmt":"2019-11-14T05:58:31","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=709"},"modified":"2021-01-19T18:40:05","modified_gmt":"2021-01-19T10:40:05","slug":"unitylod-group","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=709","title":{"rendered":"[Unity]LOD Group"},"content":{"rendered":"\n<p>LOD Group\u7684\u663e\u793a\u767e\u5206\u6bd4\uff0c\u8ba1\u7b97\u65b9\u6cd5\u4e3a<br>LodPercentage = \u7269\u4ef6\u5305\u56f4\u76d2\u7684\u9ad8\u5ea6 \/ \u5f53\u524d\u5c4f\u5e55\u7684\u9ad8\u5ea6<br>\u7136\u540e\u7528LodPercentage\uff0c\u5728\u914d\u7f6e\u4e2d\u8fdb\u884c\u5339\u914d<br><br><em>Percentage: As the object\u2019s screen height goes from the current LOD  height percentage to next, the blend factor goes from 1 to 0. Only the  meshes of the current LOD will be rendered. <\/em>Cross-fade: You need to specify a Transition Width value to define a  cross-fading zone at the end of the current LOD where it will to  transit to the next LOD. In the transition zone, both LOD levels will be  rendered. The blend factor goes from 1 to 0 for the current LOD and 0  to 1 for the next LOD.The <em>blend factor<\/em> is accessed as the <code>unity_LODFade.x uniform<\/code> variable in your shader program. Either keyword <code>LOD_FADE_PERCENTAGE<\/code> or <code>LOD_FADE_CROSSFADE<\/code> will be chosen for objects rendered with LOD fading.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"598\" src=\"http:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-1-1024x598.png\" alt=\"\" class=\"wp-image-711\" srcset=\"https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-1-1024x598.png 1024w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-1-300x175.png 300w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-1-768x449.png 768w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-1-70x41.png 70w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-1.png 1333w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"597\" src=\"http:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-2-1024x597.png\" alt=\"\" class=\"wp-image-712\" srcset=\"https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-2-1024x597.png 1024w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-2-300x175.png 300w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-2-768x448.png 768w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-2-70x41.png 70w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/image-2.png 1333w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5f53\u5305\u56f4\u76d2\u7684\u9ad8\u5ea6\u4f4e\u4e8e50%\u65f6\uff0c\u5207\u6210\u4e86LOD1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LOD Group\u7684\u663e\u793a\u767e\u5206\u6bd4\uff0c\u8ba1\u7b97\u65b9\u6cd5\u4e3aLodPercentage = \u7269\u4ef6\u5305\u56f4\u76d2\u7684\u9ad8\u5ea6 \/ \u5f53\u524d\u5c4f\u5e55\u7684\u9ad8\u5ea6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/709"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=709"}],"version-history":[{"count":5,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":717,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions\/717"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}