{"id":2410,"date":"2023-08-06T15:51:25","date_gmt":"2023-08-06T06:51:25","guid":{"rendered":"https:\/\/stacstar.jp\/blog\/?p=2410"},"modified":"2023-08-07T17:07:46","modified_gmt":"2023-08-07T08:07:46","slug":"ugui-%e3%81%a7%e3%81%ae-mask-%e3%81%a7%e3%81%8d%e3%82%8b-image-%e3%81%ae%e4%b9%97%e7%ae%97","status":"publish","type":"post","link":"https:\/\/stacstar.jp\/blog\/?p=2410","title":{"rendered":"uGUI \u3067\u306e Mask \u3067\u304d\u308b Image \u306e\u4e57\u7b97"},"content":{"rendered":"<p>Image \u306e\u4e57\u7b97\u81ea\u4f53\u306f Shader Graph \u306e\u3053\u306e\u8a2d\u5b9a\u3092\u3059\u308c\u3070\u53ef\u80fd\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/stacstar.jp\/blog\/wp-content\/uploads\/shader_multiply_graph_inspector_multiply.png\" alt=\"\" width=\"400\" height=\"570\" class=\"aligncenter size-full wp-image-2411\" srcset=\"https:\/\/stacstar.jp\/blog\/.\/wp-content\/uploads\/shader_multiply_graph_inspector_multiply.png 400w, https:\/\/stacstar.jp\/blog\/.\/wp-content\/uploads\/shader_multiply_graph_inspector_multiply-211x300.png 211w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><br \/>\n\u305f\u3060\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3000Warning \u3092\u5410\u3044\u3066\u3057\u307e\u3046\u306e\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u66f8\u304d\u3092\u8a2d\u5b9a\u3057\u3066\u3042\u3052\u308c\u3070\u51fa\u306a\u304f\u306a\u308b\u3002<\/p>\n<p><code>Material Multiply doesn't have _Stencil property<\/code><\/p>\n<p><!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/stacstar.jp\/blog\/wp-content\/uploads\/shader_multiply_properties.png\" alt=\"\" width=\"390\" height=\"590\" class=\"aligncenter size-full wp-image-2412\" srcset=\"https:\/\/stacstar.jp\/blog\/.\/wp-content\/uploads\/shader_multiply_properties.png 390w, https:\/\/stacstar.jp\/blog\/.\/wp-content\/uploads\/shader_multiply_properties-198x300.png 198w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/p>\n<p>\u305f\u3060\u305f\u3060\u30b9\u30c6\u30f3\u30b7\u30eb\u306e\u30c1\u30a7\u30c3\u30af\u3092\u56de\u907f\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u30d3\u30e5\u30fc\u306a\u3069 Mask \u306e\u6a5f\u80fd\u3092\u306a\u3069\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u306b\u306f\u5bfe\u5fdc\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3002\u306a\u306e\u3067\u3001<a href=\"https:\/\/unity.com\/releases\/editor\/archive\" rel=\"noopener noreferrer\" target=\"_blank\">Unity Download Archive<\/a> \u304b\u3089 Built in shaders \u3092\u9078\u3093\u3067\u843d\u3068\u3057\u3001\u305d\u3053\u304b\u3089 Default-UI.shader \u3092\u63a2\u3057\u3066\u304d\u3066\u30ea\u30cd\u30fc\u30e0\u3057\u3066 Blend \u3092\u884c\u3063\u3066\u3044\u308b\u90e8\u5206\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u3048\u308b\u3068\u3067\u304d\u305f\u3002<\/p>\n<pre class=\"brush: unitycsharp; title: ; notranslate\" title=\"\">\r\nBlend DstColor OneMinusSrcAlpha\r\n<\/pre>\n<p>\u52a0\u7b97\u3057\u305f\u3044\u5834\u5408\u306f<\/p>\n<pre class=\"brush: unitycsharp; title: ; notranslate\" title=\"\">\r\nBlend SrcAlpha One\r\n<\/pre>\n<p>\u4e0b\u306e gif \u306f\u5f71\u306e\u90e8\u5206\u304c\u4e0a\u8a18\u3067\u4f5c\u3063\u305f\u4e57\u7b97\u3067\u53cd\u5c04\u306e\u90e8\u5206\u306f\u52a0\u7b97\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/stacstar.jp\/blog\/.\/wp-content\/uploads\/shader_multiply_additive.gif\" alt=\"\" width=\"274\" height=\"284\" class=\"aligncenter size-full wp-image-2420\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Image \u306e\u4e57\u7b97\u81ea\u4f53\u306f Shader Graph \u306e\u3053\u306e\u8a2d\u5b9a\u3092\u3059\u308c\u3070\u53ef\u80fd\u3002 \u305f\u3060\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3000Warning \u3092\u5410\u3044\u3066\u3057\u307e\u3046\u306e\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u66f8\u304d\u3092\u8a2d\u5b9a\u3057\u3066\u3042\u3052\u308c\u3070\u51fa\u306a\u304f\u306a\u308b\u3002 Material Multiply d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,2],"tags":[],"class_list":["post-2410","post","type-post","status-publish","format-standard","hentry","category-shader","category-unity"],"_links":{"self":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2410"}],"version-history":[{"count":8,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2410\/revisions"}],"predecessor-version":[{"id":2422,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2410\/revisions\/2422"}],"wp:attachment":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}