{"id":1646,"date":"2020-04-06T18:48:32","date_gmt":"2020-04-06T10:48:32","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=1646"},"modified":"2021-01-19T18:40:33","modified_gmt":"2021-01-19T10:40:33","slug":"ue%e5%85%a5%e9%97%a8","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=1646","title":{"rendered":"[UE]\u5165\u95e8"},"content":{"rendered":"\n<p>\u4e00\u3001\u5750\u6807\u7cfb<br>Unreal\uff1aX\u671d\u53f3\uff0cZ\u671d\u4e0a\uff0cY\u671d\u540e<br>Unity\uff1a  X\u671d\u53f3\uff0cZ\u671d\u524d\uff0cY\u671d\u4e0a<br>\u5c06Unity\u5750\u6807\u7cfb\u7ed5X\u8f74\u5411\u540e\u8f6c90\u5ea6\uff0c\u5373\u4e3aUnreal\u5750\u6807\u7cfb\uff0c\u540c\u4e3a\u5de6\u624b\u5750\u6807\u7cfb<\/p>\n\n\n\n<p>\u4e8c\u3001ComponentMask<br>\u5728\u6750\u8d28\u7f16\u8f91\u5668\u4e2d\u6309Shift+C\u53ef\u5feb\u901f\u521b\u5efa<br>\u6b64\u7ec4\u4ef6\u53ef\u8fc7\u6ee4\u7279\u5b9a\u901a\u9053\uff0c\u4f8b\u5982\u5c06\u6cd5\u7ebf\u901a\u9053\u4e2d\u7684z\u63d0\u53d6\u51fa\u6765\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<br>fixed4 output = fixed4(input.z, input.z, input.z, input.z);<\/p>\n\n\n\n<p>\u4e09\u3001VertexNormalWS\u3001PixelNormalWS<br>WS=WorldSpace<br>\u82e5\u4f7f\u7528\u4e86 VertexNormalWS \uff0c\u5219\u5230Pixel\u9636\u6bb5\u662f\u4f7f\u7528\u63d2\u4ef6\u65b9\u5f0f\u83b7\u5f97\uff1b<br>\u82e5\u4f7f\u7528\u4e86 PixelNormalWS\uff0c\u5219\u5230Pixel\u9636\u6bb5\u662f\u901a\u8fc7\u6cd5\u7ebf\u8d34\u56fe<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u5750\u6807\u7cfbUnreal\uff1aX\u671d\u53f3\uff0cZ\u671d\u4e0a\uff0cY\u671d\u540eUnity\uff1a X\u671d\u53f3\uff0cZ\u671d\u524d\uff0cY\u671d\u4e0a\u5c06Unity\u5750\u6807\u7cfb\u7ed5X\u8f74\u5411\u540e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1646"}],"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=1646"}],"version-history":[{"count":4,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1646\/revisions"}],"predecessor-version":[{"id":1807,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1646\/revisions\/1807"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}