{"id":482,"date":"2015-10-07T16:50:02","date_gmt":"2015-10-07T07:50:02","guid":{"rendered":"http:\/\/naochang.me\/?p=482"},"modified":"2015-10-07T16:50:02","modified_gmt":"2015-10-07T07:50:02","slug":"standard-shader%e3%81%ae%e3%83%ac%e3%83%b3%e3%83%80%e3%83%aa%e3%83%b3%e3%82%b0%e3%83%a2%e3%83%bc%e3%83%89%e3%81%ae%e5%a4%89%e6%9b%b4","status":"publish","type":"post","link":"https:\/\/stacstar.jp\/blog\/?p=482","title":{"rendered":"Standard Shader\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30e2\u30fc\u30c9\u306e\u5909\u66f4"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/standard_shader_rendering_mode.jpg\" alt=\"standard_shader_rendering_mode\" width=\"800\" height=\"450\" class=\"aligncenter size-full wp-image-483\" \/><\/p>\n<p>Standard Shader\u306b\u3066\u3001\u900f\u904e\u3059\u308b\u3068\u304d\u306fRendering Mode\u3092Transparent\u304bFade\u3092\u9078\u3076\u3053\u3068\u306b\u306a\u308b\u3002<br \/>\nTransparent\u3060\u3068\u53cd\u5c04\u3057\u305f\u90e8\u5206\u3060\u3051\u63cf\u753b\u304c\u6b8b\u308b\u306e\u3067Fade\u3092\u4f7f\u3046\u3093\u3060\u3051\u3069\u3001\u3069\u3046\u3082\u4e0d\u900f\u660e\u306e\u3068\u304d\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u7d50\u679c\u304c\u304a\u304b\u3057\u304f\u306a\u308b\u3002\uff08\u753b\u50cf\u4e2d\u592e\uff09<br \/>\n\u306a\u306e\u3067\u3001\u4e0d\u900f\u660e\u306e\u969b\u3068\u900f\u660e\u306e\u969b\u3068\u3067Rendering Mode\u3092\u5207\u308a\u66ff\u3048\u3088\u3046\u3068\u304a\u3082\u3063\u3066<\/p>\n<pre class=\"brush: unitycsharp; title: ; notranslate\" title=\"\">\r\nthis.renderer.material.SetFloat(&quot;_Mode&quot;, 2f);\r\n<\/pre>\n<p>\u306a\u3069\u3067\u5207\u308a\u66ff\u3048\u3066\u3082\u3069\u3046\u3082\u53cd\u6620\u3057\u306a\u3044\u3002<br \/>\n\u304a\u304b\u3057\u3044\u306a\u3068\u601d\u3063\u3066\u8abf\u3079\u3066\u307f\u308b\u3068<\/p>\n<pre class=\"brush: unitycsharp; title: ; notranslate\" title=\"\">\r\nMaterial m;\r\nm.SetFloat(&quot;_Mode&quot;, 2);\r\nm.SetInt(&quot;_SrcBlend&quot;, (int)UnityEngine.Rendering.BlendMode.SrcAlpha);\r\nm.SetInt(&quot;_DstBlend&quot;, (int)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);\r\nm.SetInt(&quot;_ZWrite&quot;, 0);\r\nm.DisableKeyword(&quot;_ALPHATEST_ON&quot;);\r\nm.EnableKeyword(&quot;_ALPHABLEND_ON&quot;);\r\nm.DisableKeyword(&quot;_ALPHAPREMULTIPLY_ON&quot;);\r\n<\/pre>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u8272\u3005\u306aShader\u306e\u5024\u306e\u5909\u66f4\u304c\u5fc5\u8981\u3089\u3057\u3044\u3002<br \/>\n\u53c2\u8003\uff09<br \/>\n<a href=\"http:\/\/answers.unity3d.com\/questions\/1016155\/standard-material-shader-ignoring-setfloat-propert.html\" title=\"Unity | Answers | Standard material shader ignoring SetFloat property \" target=\"_blank\">Unity | Answers | Standard material shader ignoring SetFloat property<\/a><\/p>\n<p><a href=\"http:\/\/forum.unity3d.com\/threads\/standard-material-shader-ignoring-setfloat-property-_mode.344557\/\" target=\"_blank\">\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8<\/a>\u306e\u4e0b\u306e\u65b9\u307f\u305f\u3044\u306b\u3001\u62e1\u5f35\u3068\u3057\u3066\u7528\u610f\u3057\u3066\u304a\u304f\u3068\u4fbf\u5229\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Standard Shader\u306b\u3066\u3001\u900f\u904e\u3059\u308b\u3068\u304d\u306fRendering Mode\u3092Transparent\u304bFade\u3092\u9078\u3076\u3053\u3068\u306b\u306a\u308b\u3002 Transparent\u3060\u3068\u53cd\u5c04\u3057\u305f\u90e8\u5206\u3060\u3051\u63cf\u753b\u304c\u6b8b\u308b\u306e\u3067Fade\u3092\u4f7f\u3046\u3093\u3060\u3051\u3069\u3001\u3069\u3046\u3082\u4e0d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-482","post","type-post","status-publish","format-standard","hentry","category-unity"],"_links":{"self":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/482","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=482"}],"version-history":[{"count":2,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/482\/revisions"}],"predecessor-version":[{"id":485,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/482\/revisions\/485"}],"wp:attachment":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}