|
|
Plane plane;
plane.normal=Vector3::NEGATIVE_UNIT_X;
int width= mpApp->mWindow->getViewport(0)->getActualWidth();
int height=mpApp->mWindow->getViewport(0)->getActualHeight();
MeshPtr pViewMesh = MeshManager::getSingleton().createPlane(
"viewMesh", //Name
ResourceGroupManager: EFAULT_RESOURCE_GROUP_NAME,
plane, //The plane create previously
width, //Width
height, //Height
1,
1,
true,
1, //the number of layer of texture
1, //the number of texure on U
1, //the number of texure on V
Vector3::NEGATIVE_UNIT_X
);
上面code会报错平面的upvector和法线重合,所以无效。是什么原因呢?
|
|