美文网首页
报错问题UNITY_MATRIX_MVP和UnityObject

报错问题UNITY_MATRIX_MVP和UnityObject

作者: GameObjectLgy | 来源:发表于2021-01-15 01:25 被阅读0次

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