SAMPLER(sampler_HeightTex);
这样定义在
tex2Dlod (sampler_HeightTex, uv)
中采集不到图片颜色,需要改成
sampler2D _HeightTex;
half4 tex = tex2Dlod (_HeightTex, uv);
SAMPLER(sampler_HeightTex);
这样定义在
tex2Dlod (sampler_HeightTex, uv)
中采集不到图片颜色,需要改成
sampler2D _HeightTex;
half4 tex = tex2Dlod (_HeightTex, uv);