{"id":2909,"date":"2020-12-10T23:07:14","date_gmt":"2020-12-10T15:07:14","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=2909"},"modified":"2020-12-10T23:07:41","modified_gmt":"2020-12-10T15:07:41","slug":"unity%e8%ae%b0%e5%9d%91-material%e6%9d%90%e8%b4%a8%e6%96%87%e4%bb%b6%e7%9a%84%e6%ae%8b%e7%95%99%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=2909","title":{"rendered":"[Unity]\u8bb0\u5751:Material\u6750\u8d28\u6587\u4ef6\u7684\u6b8b\u7559\u6570\u636e"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"435\" height=\"361\" src=\"http:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/12\/image.png\" alt=\"\" class=\"wp-image-2910\"\/><\/figure>\n\n\n\n<p>\u4e3a\u4e86\u65b9\u4fbf\u5f00\u53d1\u4eba\u5458\u5207\u6362Shader\u548c\u8bbe\u7f6e\u5404\u79cd\u5c5e\u6027\u548c\u7eb9\u7406\uff0c\u6240\u4ee5Unity\u5728\u5207\u6362Shader\u540e\uff0c\u4f1a\u4fdd\u7559\u4e4b\u524dShader\u7684Keyword\u3001\u4ee5\u53caTextureProperty<br>\u867d\u7136\u4e0d\u5728\u9762\u677f\u4e0a\u663e\u793a\u51fa\u6765\uff0c\u4f46\u5185\u90e8\u5176\u5b9e\u662f\u4fdd\u7559\u7740\u7684<\/p>\n\n\n\n<p>\u7136\u540e\uff1a\u8fd9\u4e2a\u6750\u8d28\u6587\u4ef6\u88ab\u5207\u8fc7N\u904dShader\uff0c\u8bbe\u7f6e\u8fc7N\u6b21\u7eb9\u7406\uff0c\u4e0d\u65ad\u88ab\u81ea\u5b9a\u4e49\u7684ShaderGUI\u8bbe\u7f6e\u8fc7Keyword\u540e\uff0c\u5b83\u7edf\u7edf\u5168\u90e8\u4fdd\u7559\u3002<\/p>\n\n\n\n<p>\u4e0b\u573a\uff1a<br>\uff081\uff09\u6750\u8d28\u6587\u4ef6\u5e26\u4e0a\u4e86 \u65e0\u6548\u7684Keyword\u3001\u5197\u4f59\u7684\u7eb9\u7406\u8d44\u6e90<br>\uff082\uff09\u6750\u8d28\u5076\u73b0\u5931\u6548\uff0c\u8868\u73b0\u4e3a\u7c89\u7ea2\u3001\u8868\u73b0\u5f02\u5e38 \u7b49\u7b49<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<br>1\u3001\u597d\u529e\u6cd5\uff1a\u5199\u4e2a\u81ea\u5b9a\u4e49\u7684\u811a\u672c\uff0c\u626b\u63cf\u6240\u6709Material\u6587\u4ef6\uff0c\u6316\u51fa\u91cc\u9762\u7528\u4e86\u54ea\u4e2aShader\uff0c\u4f7f\u7528\u4e86\u54ea\u4e9bTexture\uff0c\u518d\u5220\u9664\u6389\u539f\u6765\u6240\u6709\u7684Keyword\uff0c\u5220\u9664\u6389\u4e0d\u7528\u7684Texture\u5c5e\u6027\uff0c\u518d\u914d\u7f6e\u597d\u6b63\u786e\u7684Keyword<\/p>\n\n\n\n<p>2\u3001\u7b28\u529e\u6cd5\uff1a\u624b\u5de5\u6253\u5f00\u6750\u8d28\u6587\u4ef6\uff0c\u628a\u91cc\u9762\u7684Keyword\u90fd\u5220\u9664\uff0c\u7136\u540e\u624b\u5de5\u70b9\u5f00\u6b64\u6750\u8d28\u6587\u4ef6\u7684Inspector\u7a97\u53e3\uff0c\u5207\u6210\u4e00\u4e2aUnlitShader\u518d\u5207\u56de\u6765\uff0c\u5237\u65b0\u4fdd\u5b58\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4e86\u65b9\u4fbf\u5f00\u53d1\u4eba\u5458\u5207\u6362Shader\u548c\u8bbe\u7f6e\u5404\u79cd\u5c5e\u6027\u548c\u7eb9\u7406\uff0c\u6240\u4ee5Unity\u5728\u5207\u6362Shader\u540e\uff0c\u4f1a\u4fdd\u7559\u4e4b\u524dShade [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/2909"}],"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=2909"}],"version-history":[{"count":2,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/2909\/revisions"}],"predecessor-version":[{"id":2912,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/2909\/revisions\/2912"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}