Engine发教程 - 图文

2026/4/24 2:34:08

upperLeft.X = 0;

upperLeft.Y = 0;

upperLeft.Z = 0;

upperRight.X = 300;

upperRight.Y = 0;

upperRight.Z = 0;

lowerLeft.X = 0;

lowerLeft.Y = 0;

lowerLeft.Z = -100;

lowerRight.X = 300;

lowerRight.Y = 1;

lowerRight.Z = -100;

multiPatchCreator.SetWKSPointZ(0, ref upperRight);

multiPatchCreator.SetWKSPointZ(1, ref lowerRight);

multiPatchCreator.SetWKSPointZ(2, ref upperLeft);

multiPatchCreator.SetWKSPointZ(3, ref lowerLeft);

//设置贴图的点

WKSPoint textureUpperLeft = new WKSPoint();

WKSPoint textureLowerLeft = new WKSPoint();

WKSPoint textureUpperRight = new WKSPoint();

WKSPoint textureLowerRight = new WKSPoint();

textureUpperLeft.X = 0; textureUpperLeft.Y = 0;

textureUpperRight.X = 1; textureUpperRight.Y = 0;

textureLowerLeft.X = 0; textureLowerLeft.Y = 1;

textureLowerRight.X = 1; textureLowerRight.Y = 1;

multiPatchCreator.SetTextureWKSPoint(0, ref textureUpperRight);

multiPatchCreator.SetTextureWKSPoint(1, ref textureLowerRight);

multiPatchCreator.SetTextureWKSPoint(2, ref textureUpperLeft);

multiPatchCreator.SetTextureWKSPoint(3, ref textureLowerLeft);

//创建MultiPatch对象

IMultiPatch multiPatch = multiPatchCreator.CreateMultiPatch() as IMultiPatch;

return multiPatch;

}


Engine发教程 - 图文.doc 将本文的Word文档下载到电脑
搜索更多关于: Engine发教程 - 图文 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219