对物体图像 做一个 上下左右 偏移渲染
Shader 部分:
Shader "Custom/Gaosi"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Speed("SetSpeed",float) = 1
_offestPos("offestPos" ,float) = 0.1
}
SubShader
{
// No culling or depth
// Cull Off ZWrite Off //ZTest Always
Cull Off
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc