{"id":528,"date":"2012-02-03T00:57:25","date_gmt":"2012-02-02T21:57:25","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=528"},"modified":"2012-02-03T02:05:57","modified_gmt":"2012-02-02T23:05:57","slug":"multi-uv-mixing-shader","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/02\/03\/multi-uv-mixing-shader\/","title":{"rendered":"Multi-UV Mixing (shader)"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"529\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/02\/03\/multi-uv-mixing-shader\/muvmixing1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mUVmixing1.jpg?fit=673%2C447&amp;ssl=1\" data-orig-size=\"673,447\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"mUVmixing1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mUVmixing1.jpg?fit=673%2C447&amp;ssl=1\" class=\"alignnone size-full wp-image-529\" title=\"mUVmixing1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mUVmixing1.jpg?resize=673%2C447\" alt=\"\" width=\"673\" height=\"447\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mUVmixing1.jpg?w=673&amp;ssl=1 673w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mUVmixing1.jpg?resize=300%2C199&amp;ssl=1 300w\" sizes=\"auto, (max-width: 673px) 100vw, 673px\" \/><\/p>\n<p>Testing multi-UV mixing (related <a title=\"http:\/\/forum.unity3d.com\/threads\/121788-Unity-terrain-how-to-achieve-a-udk-or-cryengine-look\" href=\"http:\/\/forum.unity3d.com\/threads\/121788-Unity-terrain-how-to-achieve-a-udk-or-cryengine-look\" target=\"_blank\">forum link<\/a>).<br \/>\nAll this shader does, it uses the same material with different sizes.. so it doesnt look so tiled.<br \/>\n(but loses detail and actually while testing, simple bumpmap helps to remove tiling quite nicely also..)<strong><\/strong><\/p>\n<p>Screenshot:left side, standard diffuse map &#8211;\u00a0 right side, UV mixed map.<br \/>\nThis version is made directly from &#8220;Diffuse&#8221; shader (<a title=\"http:\/\/unity3d.com\/support\/documentation\/Components\/SL-SurfaceShaderLightingExamples.html\" href=\"http:\/\/unity3d.com\/support\/documentation\/Components\/SL-SurfaceShaderLightingExamples.html\" target=\"_blank\">link to Unity docs<\/a>)<br \/>\n<strong><br \/>\nfind line<\/strong>:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">o.Albedo = tex2D (_MainTex, IN.uv_MainTex).rgb;<\/pre>\n<p><strong>replace with<\/strong>:<em> (adjust the multipliers to get different effects)<\/em><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">half3 col= tex2D (_MainTex, IN.uv_MainTex).rgb*0.5;\r\ncol+=tex2D (_MainTex, IN.uv_MainTex*0.75).rgb*0.25;\r\ncol+=tex2D (_MainTex, IN.uv_MainTex*0.5).rgb*0.25;\r\no.Albedo = col;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Testing multi-UV mixing (related forum link). All this shader does, it uses the same material with different sizes.. so it doesnt look so tiled. (but loses detail and actually while testing, simple bumpmap helps to remove tiling quite nicely also..) Screenshot:left side, standard diffuse map [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":529,"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_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13,3],"tags":[146,14,142,147,145],"class_list":["post-528","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shaders","category-unity3d","tag-mix","tag-shader","tag-texture","tag-tiled","tag-uv"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mUVmixing1.jpg?fit=673%2C447&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-8w","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/528","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=528"}],"version-history":[{"count":3,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/528\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/528\/revisions\/532"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/529"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}