Feb
3
2012

Multi-UV Mixing (shader)

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 –  right side, UV mixed map.
This version is made directly from “Diffuse” shader (link to Unity docs)

find line
:

o.Albedo = tex2D (_MainTex, IN.uv_MainTex).rgb;

replace with: (adjust the multipliers to get different effects)

half3 col= tex2D (_MainTex, IN.uv_MainTex).rgb*0.5;
col+=tex2D (_MainTex, IN.uv_MainTex*0.75).rgb*0.25;
col+=tex2D (_MainTex, IN.uv_MainTex*0.5).rgb*0.25;
o.Albedo = col;

7 Comments + Add Comment

Leave a comment to mgear

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.