v2f vert(appdata v)
{
v2f o;
//unity5.6以前的写法
//o.vertex = mul(UNITY_MATRIX_MVP,v.vertex);
//unity5.6以后的写法
o.vertex = UnityObjectToClipPos(v.vertex);
return o;
}
v2f vert(appdata v)
{
v2f o;
//unity5.6以前的写法
//o.vertex = mul(UNITY_MATRIX_MVP,v.vertex);
//unity5.6以后的写法
o.vertex = UnityObjectToClipPos(v.vertex);
return o;
}
本文标题:报错问题UNITY_MATRIX_MVP和UnityObject
本文链接:https://www.haomeiwen.com/subject/xxmxoktx.html
网友评论