{"id":4546,"date":"2017-05-20T19:09:57","date_gmt":"2017-05-20T11:09:57","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=4546"},"modified":"2017-05-20T19:09:57","modified_gmt":"2017-05-20T11:09:57","slug":"terrain-alphamap-texture-filtermode-sharp-texture-blending","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2017\/05\/20\/terrain-alphamap-texture-filtermode-sharp-texture-blending\/","title":{"rendered":"Terrain AlphaMap Texture FilterMode (sharp texture blending)"},"content":{"rendered":"<p>You can use shader to do sharp blending on terrain textures like this old version <a href=\"https:\/\/unitycoder.com\/blog\/2014\/12\/22\/custom-terrain-shader-sharp-blending\/\" target=\"_blank\" rel=\"noopener noreferrer\">custom terrain sharp blending shader<\/a>,<br \/>\nbut can also set alphamap texture filtermode instead! (no custom shaders needed)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4547\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2017\/05\/20\/terrain-alphamap-texture-filtermode-sharp-texture-blending\/terrain-alphamap-filtermode\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode.jpg?fit=680%2C251&amp;ssl=1\" data-orig-size=\"680,251\" data-comments-opened=\"1\" data-image-title=\"terrain-alphamap-filtermode\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode.jpg?fit=680%2C251&amp;ssl=1\" class=\"alignnone size-full wp-image-4547\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode.jpg?resize=680%2C251&#038;ssl=1\" alt=\"\" width=\"680\" height=\"251\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode.jpg?resize=300%2C111&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p>With custom editor script, you can do this:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4548\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2017\/05\/20\/terrain-alphamap-texture-filtermode-sharp-texture-blending\/terrain-alphamap-filtermode-editor-script\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode-editor-script.jpg?fit=547%2C98&amp;ssl=1\" data-orig-size=\"547,98\" data-comments-opened=\"1\" data-image-title=\"terrain-alphamap-filtermode-editor-script\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode-editor-script.jpg?fit=547%2C98&amp;ssl=1\" class=\"alignnone size-full wp-image-4548\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode-editor-script.jpg?resize=547%2C98&#038;ssl=1\" alt=\"\" width=\"547\" height=\"98\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode-editor-script.jpg?w=547&amp;ssl=1 547w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode-editor-script.jpg?resize=300%2C54&amp;ssl=1 300w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/p>\n<p>Example project with the editor script:<\/p>\n<p><a href=\"https:\/\/github.com\/unitycoder\/UnityTerrainSharpBlending\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/unitycoder\/UnityTerrainSharpBlending<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use shader to do sharp blending on terrain textures like this old version custom terrain sharp blending shader, but can also set alphamap texture filtermode instead! (no custom shaders needed) With custom editor script, you can do this: Example project with the editor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4547,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[804,420,3],"tags":[985,983,686,984,14,982,422,168,142],"class_list":["post-4546","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripts","category-tutorials","category-unity3d","tag-alphamap","tag-blend","tag-blending","tag-filtermode","tag-shader","tag-sharp","tag-splatmap","tag-terrain","tag-texture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1bk","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/terrain-alphamap-filtermode.jpg?fit=680%2C251&ssl=1","_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=4546"}],"version-history":[{"count":1,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4546\/revisions"}],"predecessor-version":[{"id":4549,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4546\/revisions\/4549"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/4547"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=4546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=4546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=4546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}