shader代码错误 编译通过

Submitted by rootmaster on Mon, 06/11/2018 - 22:26

 

uniform fixed4 _RefPlan;

v2f vert(appdata_tan v)

{

.......

   float4 vt;

   vt = v.vertex;

   float4 objectRef = (unity_WorldToObject,_RefPlan);//line258编译通过 模拟器不通过手机通过

   vt.xyz = reflect(vt.xyz,normalize(objectRef.xyz));

........

}

Image removed.failed pic