这个技术在神秘海域和战争机器流行起来···
<img src="https://img-blog.csdn.net/20150811231022590?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
两个贴图融合的非常好···
Shader "Custom/7.4" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_SecondaryTex("Secondary Texture",2D) = "white"{}
_HeightMap("HeightMap",2D) = "white"{}
_Value("Value",Range(1,20))= 3
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
CGPROGRAM
#pragma surface surf Lambert vertex:vert
sampler2D _MainTex;
sampler2D _SecondaryTex;
sampler2D _HeightMap;
float _Value;
struct Input {
float2 uv_MainTex;
float2 u