close #42; Support changing material property by AnimationClip

This commit is contained in:
mob-sakai
2019-02-23 16:40:57 +09:00
parent b73a8adb4d
commit 79bbc4de95
3 changed files with 186 additions and 5 deletions

View File

@@ -77,7 +77,7 @@
v2f OUT;
OUT.worldPosition = IN.vertex;
OUT.vertex = UnityObjectToClipPos(IN.vertex);
OUT.texcoord = IN.texcoord;
OUT.texcoord = TRANSFORM_TEX(IN.texcoord, _MainTex);
#ifdef UNITY_HALF_TEXEL_OFFSET
OUT.vertex.xy += (_ScreenParams.zw-1.0)*float2(-1,1);
#endif