{"id":2319,"date":"2020-09-11T12:18:17","date_gmt":"2020-09-11T04:18:17","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=2319"},"modified":"2020-09-11T12:18:17","modified_gmt":"2020-09-11T04:18:17","slug":"unitymulti_compile%e3%80%81shader_feature%e3%80%81multi_compile_local","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=2319","title":{"rendered":"[Unity]multi_compile\u3001shader_feature\u3001multi_compile_local"},"content":{"rendered":"\n<p>1\u3001multi_compile \u4e3a\u5168\u5c40 \u53d8\u4f53\uff0c\u6bcf\u52a0\u4e00\u4e2a\u53d8\u4f53\u7ffb\u500d<\/p>\n\n\n\n<p>#program multi_compile A B<br>#program multi_compile D E<\/p>\n\n\n\n<p>\u5219\u4ea7\u751fAD AE BE BE\u56db\u79cd\u7ec4\u5408\uff0c\u53ef\u4ee5\u901a\u8fc7Shader.EnableKeyword\u8fdb\u884c\u5168\u5c40\u63a7\u5236<br>\u9002\u7528\u4e8e\u4e0b\u96ea\u4e0b\u96e8\u7b49\u5168\u5c40\u63a7\u5236\u6027\u8868\u73b0\u4e0a<\/p>\n\n\n\n<p>2\u3001shader_feature \u4e3aUnity\u5f15 \u81ea\u884c\u5265\u79bb\u7684\u53d8\u4f53<br>\u6253Shader\u7684AB\u5305\uff0c\u6700\u597d<a href=\"http:\/\/blog.coolcoding.cn\/?p=2148\">\u4f7f\u7528 ShaderVariantCollection \u8fdb\u884c\u5f15\u7528<\/a><\/p>\n\n\n\n<p>3\u3001multi_compile_local \u4e3a\u672c\u5730\u53d8\u4f53\uff0c\u53ea\u53d1\u751f\u5728\u672cShader\uff0c\u975e\u5168\u5c40\u63a7\u5236<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001multi_compile \u4e3a\u5168\u5c40 \u53d8\u4f53\uff0c\u6bcf\u52a0\u4e00\u4e2a\u53d8\u4f53\u7ffb\u500d #program multi_compile  [&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":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/2319"}],"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=2319"}],"version-history":[{"count":1,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/2319\/revisions"}],"predecessor-version":[{"id":2320,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/2319\/revisions\/2320"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}