{"id":1460,"date":"2020-03-27T10:30:12","date_gmt":"2020-03-27T02:30:12","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=1460"},"modified":"2020-09-09T13:40:53","modified_gmt":"2020-09-09T05:40:53","slug":"%e9%a2%9c%e8%89%b2%e6%b7%b7%e5%90%88","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=1460","title":{"rendered":"\u989c\u8272\u6df7\u5408\u8bf4\u660e"},"content":{"rendered":"\n<p>\u989c\u8272\u6df7\u5408\u516c\u5f0f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FinalColor= (SrcColor* SrcBlend) BlendOp (DesColor* DestBlend)\n\n\u5373\uff1a\u6700\u7ec8RGB\u503c = \uff08\u4e0a\u5c42\u56fe\u7684RGB * SrcBlend \uff09BlendOp\uff08\u4e0b\u5c42\u56fe\u7684RGB * DstBlend\uff09\n\nSrcBlend \u548c DstBlend \u53ef\u53d6\u4ee5\u4e0b\u503c\nZero\uff1a\u6c38\u8fdc\u53d60\nOne\uff1a\u6c38\u8fdc\u53d61\nDstColor\uff1a\u4e0b\u5c42\u56fe\u7684RGB\nSrcColor\uff1a\u4e0a\u5c42\u56fe\u7684RGB\nOneMinusDstColor\uff1a 1-\u4e0b\u5c42\u56feRGB\nSrcAlpha \uff1a\u4e0a\u5c42\u56fe\u7247\u7684Alpha\u503c\nOneMinusSrcColor\uff1a 1-\u4e0a\u5c42\u56feRGB\nDstAlpha \uff1a\u4e0b\u5c42\u56fe\u7247\u7684Alpha\u503c\nOneMinusSrcAlpha\uff1a 1-\u4e0a\u5c42\u56feAlpha\nSrcAlphaSaturate\uff1a\u53d6\u6700\u5c0f\u503c\uff08\u4e0a\u5c42\u56feAlpha\uff0c1-\u4e0a\u5c42\u56feAlpha\uff09\nOneMinusDstAlpha\uff1a 1-\u4e0b\u5c42\u56feAlpha\n\nBlendOp\u53ef\u4ee5\u53d6\u4ee5\u4e0b\u503c\nAdd\uff1a \u52a0\u6cd5\nSub\uff1a \u51cf\u6cd5\nRevSub\uff1a \u53cd\u51cf\nMin\uff1a\u53d6\u4e24\u8005\u5c0f\u503c\nMax\uff1a\u53d6\u4e24\u8005\u5927\u503c\n\nAdd\tAdd source and destination together.\nSub\tSubtract destination from source.\nRevSub\tSubtract source from destination.\nMin\tUse the smaller of source and destination.\nMax\tUse the larger of source and destination.\n<\/code><\/pre>\n\n\n\n<p>\u793a\u4f8b1-\u7ecf\u5178\u900f\u660e\u56fe\u7247\u6df7\u5408\u7b97\u6cd5\uff1a<br>SrcBlend\u9009SrcAlpha\uff0cDestBlend\u9009OneMinusSrcAlpha\uff0cBlendOp\u9009Add<br>\u5219\uff1a\u8f93\u51fa\u503c = \u4e0a\u5c42\u56feRGB*\u4e0a\u5c42\u56feAlpha + \u4e0b\u5c42\u56feRGB*\uff081-\u4e0a\u5c42\u56feAlpha\uff09<\/p>\n\n\n\n<p>\u793a\u4f8b2-\u53e0\u52a0\u7b97\u6cd5a\uff1a<br>SrcBlend\u9009SrcAlpha, DestBlend\u9009One\uff0cBlendOp\u9009Add<br>\u5219\uff1a\u8f93\u51fa\u503c=  \u4e0a\u5c42\u56feRGB*\u4e0a\u5c42\u56feAlpha + \u4e0b\u5c42\u56feRGB<\/p>\n\n\n\n<p> \u793a\u4f8b3-\u53e0\u52a0\u7b97\u6cd5b\uff1a<br>SrcBlend\u9009One, DestBlend\u9009One\uff0cBlendOp\u9009Add<br>\u5219\uff1a\u8f93\u51fa\u503c=  \u4e0a\u5c42\u56feRGB + \u4e0b\u5c42\u56feRGB <\/p>\n\n\n\n<p> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u989c\u8272\u6df7\u5408\u516c\u5f0f\uff1a \u793a\u4f8b1-\u7ecf\u5178\u900f\u660e\u56fe\u7247\u6df7\u5408\u7b97\u6cd5\uff1aSrcBlend\u9009SrcAlpha\uff0cDestBlend\u9009OneM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1460"}],"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=1460"}],"version-history":[{"count":11,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1460\/revisions"}],"predecessor-version":[{"id":2294,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1460\/revisions\/2294"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}