{"id":1357,"date":"2020-03-10T15:17:42","date_gmt":"2020-03-10T07:17:42","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=1357"},"modified":"2020-09-27T17:02:59","modified_gmt":"2020-09-27T09:02:59","slug":"shaderlod-globalmaximumlod","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=1357","title":{"rendered":"[unity]ShaderLod.globalMaximumLOD\u89c4\u5219"},"content":{"rendered":"\n<p>\u4e00\u3001\u9ed8\u8ba4 Shader.globalMaximumLOD \u503c\u4e3a \u65e0\u9650\u5927\u503c(2147483647)( 2^31-1)<\/p>\n\n\n\n<p>\u4e8c\u3001\u82e5shader\u6587\u4ef6\u5728SubShader \u4e2d\u6307\u5b9a\u4e86LOD\u503c<br>\u6b64\u503c\u5927\u4e8e\u7b49\u4e8eShaderLod.globalMaximumLOD\u5219\u542f\u7528<br>\u82e5\u5747\u4e0d\u547d\u4e2d\uff0c\u5219\u4f7f\u7528fallback\uff0c\u82e5fallback\u4e5f\u6ca1\u6709\uff0c\u5219\u4e0d\u6e32\u67d3<\/p>\n\n\n\n<p>\u4e09\u3001\u82e5shader\u6587\u4ef6SubShader\u672a\u6307\u5b9aLOD\u503c\uff0c\u5219\u5176LOD\u503c\u4e3a0\uff0c<br>\u5e76\u4e14\u5176\u5b83\u90e8\u5206\u7684SubShader\u6307\u5b9aLOD\u503c\u4e5f\u5c06\u88ab\u5ffd\u7565<\/p>\n\n\n\n<p>\u56db\u3001\u7406\u89e3\u4e0a\uff0cLOD\u6700\u5927\uff0c\u54c1\u8d28\u8d8a\u9ad8\uff1b LOD\u8d8a\u5c0f\uff0c\u6027\u80fd\u8d8a\u597d<\/p>\n\n\n\n<p>\u4e94\u3001shader\u6587\u4ef6\u4e2d\u7684SubShader\uff0c\u8981\u4e48\u4e0d\u8981\u8bbe\u7f6eLOD\uff0c\u8981\u4e48\u5168\u8bbe\u7f6e\u597dLOD<\/p>\n\n\n\n<p>\u516d\u3001\u4e66\u5199SubShader\u65f6\uff0cLOD\u5199\u5728SubShader\u4e0b\u9762\uff0c\u4e0d\u8981\u5199\u5728Pass\u4e0b\u9762<br>\u5982\u679c\u5199\u5728Pass\u4e0b\u9762\uff0cUnity\u662f\u4e0d\u8ba4\u7684\uff08WTF\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u9ed8\u8ba4 Shader.globalMaximumLOD \u503c\u4e3a \u65e0\u9650\u5927\u503c(2147483647)( 2^31- [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[18],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1357"}],"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=1357"}],"version-history":[{"count":9,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1357\/revisions"}],"predecessor-version":[{"id":1743,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1357\/revisions\/1743"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}