{"id":12015,"date":"2019-04-22T15:00:00","date_gmt":"2019-04-22T06:00:00","guid":{"rendered":"https:\/\/styly.cc\/?p=12015"},"modified":"2019-04-18T19:37:32","modified_gmt":"2019-04-18T10:37:32","slug":"unlitcastshadow-go-shader","status":"publish","type":"post","link":"https:\/\/styly.cc\/ja\/tips\/unlitcastshadow-go-shader\/","title":{"rendered":"Photogrammetory\u3067\u4f7f\u3048\u308bUnlit\u3060\u3051\u3069\u5f71\u3092\u843d\u3068\u3059\u30b7\u30a7\u30fc\u30c0\u30fc"},"content":{"rendered":"<p><\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fPhotogrammetory\u3067\u4f5c\u6210\u3057\u305f3D\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b7\u30fc\u30f3\u306b\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5f71\u3092\u843d\u3068\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_12017\" style=\"width: 1930px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12017\" class=\"size-full wp-image-12017\" src=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/UnlitCastShadow.gif\" alt=\"Unlit\u3060\u3051\u3069\u5f71\u3092\u843d\u3068\u3059\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u3063\u305f\u30b5\u30b6\u30a8\" width=\"1920\" height=\"1352\" srcset=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/UnlitCastShadow.gif 1920w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/UnlitCastShadow-300x211.gif 300w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/UnlitCastShadow-768x541.gif 768w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/UnlitCastShadow-1024x721.gif 1024w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-12017\" class=\"wp-caption-text\">Unlit\u3060\u3051\u3069\u5f71\u3092\u843d\u3068\u3059\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u3063\u305f\u30b5\u30b6\u30a8<\/p><\/div>\n<h2><span id=\"Photogrammetory\">Photogrammetory\u3068\u306f\uff1f<\/span><\/h2>\n<p>Photogrammetory\u306e\u6280\u8853\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30dd\u30ea\u30b4\u30f3\u30e2\u30c7\u30ea\u30f3\u30b0\u3084\u30b9\u30ab\u30eb\u30d7\u30c8\u30e2\u30c7\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u306a\u304f\u30e1\u30c3\u30b7\u30e5\u30c7\u30fc\u30bf\u3068\u30c6\u30af\u30b9\u30c1\u30e3\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n\r\n  <div class=\"blog-card\">\r\n    <a href=\"https:\/\/styly.cc\/ja\/tips\/photogrammetry_discont_photogrammetry\/\">\r\n        <div class=\"blog-card-thumbnail\"><img src='https:\/\/styly.cc\/wp-content\/uploads\/2018\/11\/\u540d\u79f0\u672a\u8a2d\u5b9a-4-01.jpg' alt='\u30d5\u30a9\u30c8\u30b0\u30e9\u30e1\u30c8\u30ea\u5165\u9580 \u64ae\u5f71\u65b9\u6cd5\uff5e3D\u30e2\u30c7\u30eb\u4f5c\u6210' width=90 height=49 \/><\/div>\r\n        <div class=\"blog-card-content\">\r\n            <div class=\"blog-card-title\">\u30d5\u30a9\u30c8\u30b0\u30e9\u30e1\u30c8\u30ea\u5165\u9580 \u64ae\u5f71\u65b9\u6cd5\uff5e3D\u30e2\u30c7\u30eb\u4f5c\u6210 <\/div>\r\n            <div class=\"blog-card-excerpt\"><\/div>\r\n        <\/div>\r\n        <div class=\"clear\"><\/div>\r\n    <\/a>\r\n  <\/div>\n<p>&nbsp;<\/p>\n<p>\u3061\u3083\u3093\u3068\u3057\u305f\u7167\u660e\u8a2d\u5099\u306e\u3042\u308b\u30b9\u30bf\u30b8\u30aa\u3092\u7528\u610f\u3057\u306a\u3044\u9650\u308a\u30ab\u30e1\u30e9\u3067\u64ae\u5f71\u3057\u305f\u753b\u50cf\u306f\u592a\u967d\u306e\u5149\u3084\u7167\u660e\u306e\u5f71\u97ff\u3092\u53d7\u3051\u305f\u72b6\u614b\u306b\u306a\u308b\u306e\u3067\u3001Material\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u306fUnlit\u306e\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>&nbsp;<\/p>\n<p>Unity\u306eStandard\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3068\u9670\u5f71\u304c\u4ed8\u3044\u305f\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u4e0a\u306b\u30e9\u30a4\u30c8\u306e\u5f71\u97ff\u3067\u9670\u5f71\u304c\u4ed8\u304f\u306e\u3067\u4e0d\u81ea\u7136\u306a\u898b\u305f\u76ee\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div id=\"attachment_12021\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12021\" class=\"size-large wp-image-12021\" src=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/01-1024x625.jpg\" alt=\"Standard\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30b6\u30a8\" width=\"1024\" height=\"625\" srcset=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/01-1024x625.jpg 1024w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/01-300x183.jpg 300w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/01-768x468.jpg 768w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/01.jpg 1287w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><p id=\"caption-attachment-12021\" class=\"wp-caption-text\">Standard\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30b6\u30a8<\/p><\/div>\n<h2><span id=\"Unlit\">Unlit\u30b7\u30a7\u30fc\u30c0\u30fc\u3068\u306f\uff1f<\/span><\/h2>\n<p><strong>Unlit\u30b7\u30a7\u30fc\u30c0\u30fc<\/strong>\u3068\u306f\u300c<strong>\u30e9\u30a4\u30c8\u306e\u5f71\u97ff\u3092\u53d7\u3051\u306a\u3044\u30b7\u30a7\u30fc\u30c0\u30fc<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u30e9\u30a4\u30c8\u306b\u3088\u308b\u9670\u5f71\u304c\u4ed8\u304b\u305a\u3001\u4ed6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5f71\u3092\u843d\u3068\u3059\u3053\u3068\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<div id=\"attachment_12024\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12024\" class=\"size-large wp-image-12024\" src=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/02-1024x624.jpg\" alt=\"Unlit\/Texture\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30b6\u30a8\" width=\"1024\" height=\"624\" srcset=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/02-1024x624.jpg 1024w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/02-300x183.jpg 300w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/02-768x468.jpg 768w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/02.jpg 1289w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><p id=\"caption-attachment-12024\" class=\"wp-caption-text\">Unlit\/Texture\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30b6\u30a8<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>\u8a2d\u5b9a\u3055\u308c\u305fColor\u3084Texture\u304c\u305d\u306e\u307e\u307e\u63cf\u753b\u3055\u308c\u308b\u306e\u3067\u3001\u30b2\u30fc\u30e0\u3067\u306f\u30e9\u30a4\u30c8\u306e\u5f71\u97ff\u3092\u53d7\u3051\u308b\u5fc5\u8981\u306e\u306a\u3044UI\u3084\u30d5\u30e9\u30c3\u30c8\u306a\u7d75\u4f5c\u308a\u3092\u3059\u308b\u969b\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>UI\u304c\u4e0d\u81ea\u7136\u306b\u767d\u304f\u98db\u3093\u3067\u3044\u305f\u308a\u3059\u308b\u5834\u5408\u306f<strong>Unlit\/Texture\u30b7\u30a7\u30fc\u30c0\u30fc<\/strong>\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001\u30e9\u30a4\u30c8\u306b\u95a2\u3059\u308b\u8a08\u7b97\u3092\u4e00\u5207\u884c\u308f\u306a\u3044\u306e\u3067\u4e00\u756a\u8efd\u3044\u30b7\u30a7\u30fc\u30c0\u30fc\u3067\u3059\u3002<\/p>\n<h2><span id=\"i\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5f71\u3092\u843d\u3068\u3059<\/span><\/h2>\n<p>Unlit\u30b7\u30a7\u30fc\u30c0\u30fc\u306b\u5bfe\u3057\u3066\u3001Unity\u306e<strong>Standard\u30b7\u30a7\u30fc\u30c0\u30fc<\/strong>\u306f\u30e9\u30a4\u30c8\u306e\u5f71\u97ff\u3092\u53d7\u3051\u308b\u30b7\u30a7\u30fc\u30c0\u30fc\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u30e9\u30a4\u30c8\u306e\u5f71\u97ff\u3092\u53d7\u3051\u308b\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u30013D\u30e2\u30c7\u30eb\u306b\u3064\u3044\u3066\u3044\u308bMesh Renderer\u306e\u300c<strong>Cast Shadows<\/strong>\u300d\u3092\u30aa\u30f3\u30aa\u30d5\u3059\u308b\u3053\u3068\u3067\u4ed6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5f71\u3092\u843d\u3068\u3059\u304b\u3069\u3046\u304b\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div id=\"attachment_12030\" style=\"width: 984px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12030\" class=\"size-full wp-image-12030\" src=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Cast_ReceiveShadows.jpg\" alt=\"\u305d\u308c\u305e\u308c\u30aa\u30f3\u30aa\u30d5\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\" width=\"974\" height=\"497\" srcset=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Cast_ReceiveShadows.jpg 974w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Cast_ReceiveShadows-300x153.jpg 300w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Cast_ReceiveShadows-768x392.jpg 768w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><p id=\"caption-attachment-12030\" class=\"wp-caption-text\">\u305d\u308c\u305e\u308c\u30aa\u30f3\u30aa\u30d5\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>\u307e\u305f\u3001\u5f71\u3092\u53d7\u3051\u308b\u65b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5074\u3067\u3082\u5f71\u3092\u53d7\u3051\u308b\u304b\u3069\u3046\u304b\u3092\u300c<strong>Receive Shadows<\/strong>\u300d\u3067\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div id=\"attachment_12026\" style=\"width: 843px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12026\" class=\"size-full wp-image-12026\" src=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/03.jpg\" alt=\"Cast Shadows\u3068Receive Shadows\u3092\u5207\u308a\u66ff\u3048\u308b\" width=\"833\" height=\"478\" srcset=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/03.jpg 833w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/03-300x172.jpg 300w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/03-768x441.jpg 768w\" sizes=\"auto, (max-width: 833px) 100vw, 833px\" \/><p id=\"caption-attachment-12026\" class=\"wp-caption-text\">Cast Shadows\u3068Receive Shadows\u3092\u5207\u308a\u66ff\u3048\u308b<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u76ee\u6307\u3059\u30b4\u30fc\u30eb\u306f\u300cPhotogrammetory\u3067\u4f5c\u3063\u305f3D\u30e2\u30c7\u30eb\u306b\u9670\u5f71\u306f\u3064\u3051\u305f\u304f\u306a\u3044\u304c\u3001\u4ed6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5f71\u3092\u843d\u3068\u3057\u305f\u3044\u300d\u306a\u306e\u3067Unlit\u306a\u30b7\u30a7\u30fc\u30c0\u30fc\u306bCast Shadow\u6a5f\u80fd\u304c\u4ed8\u3044\u305f<strong>Unlit CastShadow Shader\u30b7\u30a7\u30fc\u30c0\u30fc<\/strong>\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_12027\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12027\" class=\"size-large wp-image-12027\" src=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/04-1024x621.jpg\" alt=\"Unlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u9069\u7528\u3057\u305f\u72b6\u614b\" width=\"1024\" height=\"621\" srcset=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/04-1024x621.jpg 1024w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/04-300x182.jpg 300w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/04-768x466.jpg 768w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/04.jpg 1285w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><p id=\"caption-attachment-12027\" class=\"wp-caption-text\">Unlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u9069\u7528\u3057\u305f\u72b6\u614b<\/p><\/div>\n<h2><span id=\"Unlit_Cast_Shadow\">Unlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u306e\u30d7\u30ed\u30b0\u30e9\u30e0<\/span><\/h2>\n<p>Unlit\u3060\u3051\u3069\u5f71\u3092\u843d\u3068\u3059\u30b7\u30a7\u30fc\u30c0\u30fc\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Shader \"Custom\/Unlit\/CastShadow\" \r\n{\r\n\tProperties \r\n\t{\r\n\t\t_MainTex (\"Texture\", 2D) = \"white\" {}\r\n\t}\r\n\t\r\n\tSubShader \r\n\t{\r\n\t\tTags {\"RenderType\"=\"Opaque\" }\r\n\t\tLOD 100\r\n\t\t\r\n\t\t\/\/ Pass to render object without lighting and shading\r\n\t\tPass\r\n\t\t{\r\n\t\t\tCGPROGRAM\r\n\t\t\t#pragma vertex vert\r\n\t\t\t#pragma fragment frag\r\n\t\t\t\/\/ make fog work\r\n\t\t\t#pragma multi_compile_fog\r\n\t\t\t\r\n\t\t\t#include \"UnityCG.cginc\"\r\n\r\n\t\t\tstruct appdata\r\n\t\t\t{\r\n\t\t\t\tfloat4 vertex : POSITION;\r\n\t\t\t\tfloat2 uv : TEXCOORD0;\r\n\t\t\t};\r\n\r\n\t\t\tstruct v2f\r\n\t\t\t{\r\n\t\t\t\tfloat2 uv : TEXCOORD0;\r\n\t\t\t\tUNITY_FOG_COORDS(1)\r\n\t\t\t\tfloat4 vertex : SV_POSITION;\r\n\t\t\t};\r\n\r\n\t\t\tsampler2D _MainTex;\r\n\t\t\tfloat4 _MainTex_ST;\r\n\t\t\t\r\n\t\t\tv2f vert (appdata v)\r\n\t\t\t{\r\n\t\t\t\tv2f o;\r\n\t\t\t\to.vertex = UnityObjectToClipPos(v.vertex);\r\n\t\t\t\to.uv = TRANSFORM_TEX(v.uv, _MainTex);\r\n\t\t\t\tUNITY_TRANSFER_FOG(o,o.vertex);\r\n\t\t\t\treturn o;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfixed4 frag (v2f i) : SV_Target\r\n\t\t\t{\r\n\t\t\t\t\/\/ sample the texture\r\n\t\t\t\tfixed4 col = tex2D(_MainTex, i.uv);\r\n\t\t\t\t\/\/ apply fog\r\n\t\t\t\tUNITY_APPLY_FOG(i.fogCoord, col);\r\n\t\t\t\treturn col;\r\n\t\t\t}\r\n\t\t\tENDCG\r\n\t\t}\r\n\t\t\r\n\t\t\/\/ Pass to render object as a shadow caster\r\n\t\tPass \r\n\t\t{\r\n\t\t\tName \"CastShadow\"\r\n\t\t\tTags { \"LightMode\" = \"ShadowCaster\" }\r\n\t\r\n\t\t\tCGPROGRAM\r\n\t\t\t#pragma vertex vert\r\n\t\t\t#pragma fragment frag\r\n\t\t\t#pragma multi_compile_shadowcaster\r\n\t\t\t#include \"UnityCG.cginc\"\r\n\t\r\n\t\t\tstruct v2f \r\n\t\t\t{ \r\n\t\t\t\tV2F_SHADOW_CASTER;\r\n\t\t\t};\r\n\t\r\n\t\t\tv2f vert( appdata_base v )\r\n\t\t\t{\r\n\t\t\t\tv2f o;\r\n\t\t\t\tTRANSFER_SHADOW_CASTER(o)\r\n\t\t\t\treturn o;\r\n\t\t\t}\r\n\t\r\n\t\t\tfloat4 frag( v2f i ) : COLOR\r\n\t\t\t{\r\n\t\t\t\tSHADOW_CASTER_FRAGMENT(i)\r\n\t\t\t}\r\n\t\t\tENDCG\r\n\t\t}\r\n\t}\r\n}<\/pre>\n<h3><span id=\"i-2\">\u30b7\u30a7\u30fc\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u898f\u4f5c\u6210<\/span><\/h3>\n<p>Project\u30a6\u30a3\u30f3\u30c9\u30a6\u306e<strong>Create\/Shader\/Unlit Shader<\/strong>\u304b\u3089\u30b7\u30a7\u30fc\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u898f\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_12031\" style=\"width: 679px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12031\" class=\"size-large wp-image-12031\" src=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/CreateShader-669x1024.jpg\" alt=\"\u30b7\u30a7\u30fc\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u306b\u300cUnlitCastShadow\u300d\u3068\u3064\u3051\u307e\u3059\" width=\"669\" height=\"1024\" srcset=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/CreateShader-669x1024.jpg 669w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/CreateShader-196x300.jpg 196w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/CreateShader-768x1175.jpg 768w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/CreateShader.jpg 1305w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><p id=\"caption-attachment-12031\" class=\"wp-caption-text\">\u30b7\u30a7\u30fc\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u300cUnlitCastShadow\u300d\u3068\u3064\u3051\u307e\u3059<\/p><\/div>\n<h3><span id=\"CastShadowPass\">CastShadow\u7528\u306ePass\u3092\u8ffd\u52a0<\/span><\/h3>\n<p>\u65b0\u898f\u4f5c\u6210\u76f4\u5f8c\u306eUnlit\u30b7\u30a7\u30fc\u30c0\u30fc\u306f1Pass\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u306bCastShadow\u7528\u306ePass\u3092\u8ffd\u52a0\u3057\u30012Pass\u306e\u30b7\u30a7\u30fc\u30c0\u30fc\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">\t\/\/ Pass to render object as a shadow caster\r\n\t\tPass \r\n\t\t{\r\n\t\t\tName \"CastShadow\"\r\n\t\t\tTags { \"LightMode\" = \"ShadowCaster\" }\r\n\t\r\n\t\t\tCGPROGRAM\r\n\t\t\t#pragma vertex vert\r\n\t\t\t#pragma fragment frag\r\n\t\t\t#pragma multi_compile_shadowcaster\r\n\t\t\t#include \"UnityCG.cginc\"\r\n\t\r\n\t\t\tstruct v2f \r\n\t\t\t{ \r\n\t\t\t\tV2F_SHADOW_CASTER;\r\n\t\t\t};\r\n\t\r\n\t\t\tv2f vert( appdata_base v )\r\n\t\t\t{\r\n\t\t\t\tv2f o;\r\n\t\t\t\tTRANSFER_SHADOW_CASTER(o)\r\n\t\t\t\treturn o;\r\n\t\t\t}\r\n\t\r\n\t\t\tfloat4 frag( v2f i ) : COLOR\r\n\t\t\t{\r\n\t\t\t\tSHADOW_CASTER_FRAGMENT(i)\r\n\t\t\t}\r\n\t\t\tENDCG\r\n\t\t}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u305d\u308c\u305e\u308c\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>LightMode\u3092<strong>ShadowCaster<\/strong>\u306b\u3059\u308b\u3053\u3068\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30b7\u30e3\u30c9\u30a6\u30de\u30c3\u30d7\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">Tags { \"LightMode\" = \"ShadowCaster\" }<\/pre>\n<p>&nbsp;<\/p>\n<p>Unity\u304c\u7528\u610f\u3057\u3066\u3044\u308b<strong>\u30de\u30af\u30ed<\/strong>\u3092\u4f7f\u3046\u3053\u3068\u3067\u30e9\u30a4\u30c6\u30a3\u30f3\u30b0\u3084\u5f71\u306e\u8a08\u7b97\u3092\u4e00\u304b\u3089\u66f8\u304b\u305a\u306b\u3001\u7c21\u5358\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5f71\u3092\u843d\u3068\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30de\u30af\u30ed\u3068\u306f\u5024\u3084\u3001\u5f0f\u304c\u3042\u3089\u304b\u3058\u3081\u5b9a\u7fa9\u3055\u308c\u305f\u3082\u306e\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3055\u308c\u305f\u30de\u30af\u30ed(\u5f0f)\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>V2F_SHADOW_CASTER<\/li>\n<li>TRANSFER_SHADOW_CASTER(o)<\/li>\n<li>SHADOW_CASTER_FRAGMENT(i)<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\">struct v2f \r\n{ \r\n\tV2F_SHADOW_CASTER;\r\n};\r\n\t\r\nv2f vert( appdata_base v )\r\n{\r\n\tv2f o;\r\n\tTRANSFER_SHADOW_CASTER(o)\r\n\treturn o;\r\n}\r\n\t\r\nfloat4 frag( v2f i ) : COLOR\r\n{\r\n\tSHADOW_CASTER_FRAGMENT(i)\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u6ce8\u610f\u70b9\u3068\u3057\u3066\u8907\u6570\u306ePass\u3067\u69cb\u6210\u3055\u308c\u308b\u30b7\u30a7\u30fc\u30c0\u30fc\u3092<strong>\u30de\u30eb\u30c1\u30d1\u30b9\u30b7\u30a7\u30fc\u30c0\u30fc<\/strong>\u3068\u547c\u3076\u306e\u3067\u3059\u304c\u3001<strong>\u30d0\u30c3\u30c1\u30f3\u30b0<\/strong>\u304c\u52b9\u304b\u306a\u304f\u306a\u308b\u306a\u3069\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3059\u308b\u306e\u30671Pass\u3067\u66f8\u3051\u308b\u3082\u306e\u306f1Pass\u3067\u66f8\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/docs.unity3d.com\/ja\/current\/Manual\/DrawCallBatching.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\" data-token-index=\"0\" data-reactroot=\"\">\u30c9\u30ed\u30fc\u30b3\u30fc\u30eb\u30d0\u30c3\u30c1\u30f3\u30b0 &#8211; Unity &#8211; Manual<\/a><\/p>\n<h2><span id=\"Unlit_Cast_Shadow3D\">Unlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u30923D\u30e2\u30c7\u30eb\u30c7\u30fc\u30bf\u306b\u9069\u7528<\/span><\/h2>\n<p>Photogrammetory\u3067\u4f5c\u6210\u3057\u305f\u30b5\u30b6\u30a8\u306e3D\u30e2\u30c7\u30eb\u306bUnlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>Unlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u3046\u3053\u3068\u3067Unlit\u306a\u898b\u305f\u76ee\u3092\u4fdd\u3061\u3064\u3064\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5f71\u304c\u843d\u3061\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u3088\u308a\u7a7a\u9593\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u306a\u3058\u3093\u3060\u898b\u305f\u76ee\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_12034\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12034\" class=\"size-large wp-image-12034\" src=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Final_CastShadow-1024x555.jpg\" alt=\"Unlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30b6\u30a8\" width=\"1024\" height=\"555\" srcset=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Final_CastShadow-1024x555.jpg 1024w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Final_CastShadow-300x163.jpg 300w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Final_CastShadow-768x416.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><p id=\"caption-attachment-12034\" class=\"wp-caption-text\">Unlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30b6\u30a8<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>\u4e00\u6614\u524d\u306e\u30b2\u30fc\u30e0\u306e\u3088\u3046\u306a\u898b\u305f\u76ee\u3067\u3042\u3063\u305f\u308a\u3001\u30af\u30aa\u30ea\u30c6\u30a3\u306e\u4f4e\u3044\u5408\u6210\u753b\u50cf\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u306f\u9069\u5207\u306b\u5f71\u3092\u8abf\u6574\u3067\u304d\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<div id=\"attachment_12035\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12035\" class=\"size-large wp-image-12035\" src=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Final_NoCastShadow-1024x555.jpg\" alt=\"Unlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u306a\u3044\u5408\u6210\u753b\u50cf\u306e\u3088\u3046\u306a\u30b5\u30b6\u30a8\" width=\"1024\" height=\"555\" srcset=\"https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Final_NoCastShadow-1024x555.jpg 1024w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Final_NoCastShadow-300x163.jpg 300w, https:\/\/styly.cc\/wp-content\/uploads\/2019\/04\/Final_NoCastShadow-768x416.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><p id=\"caption-attachment-12035\" class=\"wp-caption-text\">Unlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u306a\u3044\u5408\u6210\u753b\u50cf\u306e\u3088\u3046\u306a\u30b5\u30b6\u30a8<\/p><\/div>\n<h2><span id=\"STYLY\">STYLY\u3078\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/span><\/h2>\n<p>\u81ea\u4f5c\u306e\u30b7\u30a7\u30fc\u30c0\u30fc\u3067\u4f5c\u6210\u3057\u305fMaterial\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3064\u3051\u305f\u72b6\u614b\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u3001STYLY Scene\u5185\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Photogrammetory\u3067\u4f5c\u6210\u3057\u305f3D\u30e2\u30c7\u30eb\u306bUnlit Cast Shadow\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u305fMaterial\u3092\u3064\u3051\u305f\u72b6\u614b\u3067STYLY\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u65b9\u6cd5\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n\r\n  <div class=\"blog-card\">\r\n    <a href=\"https:\/\/styly.cc\/ja\/manual\/unity-asset-uploader\/\">\r\n        <div class=\"blog-card-thumbnail\"><img src='https:\/\/styly.cc\/wp-content\/uploads\/2018\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-04-16-16.02.10-160x160.png' alt='Unity\u304b\u3089STYLY\u306b\u30d7\u30ec\u30cf\u30d6\u3068\u30b7\u30fc\u30f3\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u65b9\u6cd5' width=90 height=90 \/><\/div>\r\n        <div class=\"blog-card-content\">\r\n            <div class=\"blog-card-title\">Unity\u304b\u3089STYLY\u306b\u30d7\u30ec\u30cf\u30d6\u3068\u30b7\u30fc\u30f3\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u65b9\u6cd5 <\/div>\r\n            <div class=\"blog-card-excerpt\"><\/div>\r\n        <\/div>\r\n        <div class=\"clear\"><\/div>\r\n    <\/a>\r\n  <\/div>\n<p>&nbsp;<\/p>\n<p>\u30b7\u30a7\u30fc\u30c0\u30fc\u306e\u7279\u6027\u3092\u7406\u89e3\u3057\u3001\u5834\u9762\u306b\u5fdc\u3058\u3066\u5f71\u3092\u843d\u3068\u3059\u3053\u3068\u3067\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ec\u30bc\u30f3\u30b9(\u5b9f\u5728\u611f)\u3092\u9ad8\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u30e9\u30a4\u30c8\u306e\u8abf\u6574\u306f\u5927\u5207\u3067\u3059\u3002<\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fPhotogrammetory\u3067\u4f5c\u6210\u3057\u305f3D\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b7\u30fc\u30f3\u306b\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5f71\u3092\u843d\u3068\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002[caption id=\"attachment_12017\" align=\"aligncenter\" width=\"1920\"]<\/p>\n","protected":false},"author":18,"featured_media":12034,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[207,12],"tags":[220],"class_list":["post-12015","post","type-post","status-publish","format-standard","has-post-thumbnail","category-shader-tips","category-tips","tag-unlit-cast-shadow"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/posts\/12015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/comments?post=12015"}],"version-history":[{"count":30,"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/posts\/12015\/revisions"}],"predecessor-version":[{"id":12157,"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/posts\/12015\/revisions\/12157"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/media\/12034"}],"wp:attachment":[{"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/media?parent=12015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/categories?post=12015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/styly.cc\/ja\/wp-json\/wp\/v2\/tags?post=12015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}