StaticMeshComponent改为MeshComponent
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include<hgl/graph/PrimitiveCreater.h>
|
||||
#include<hgl/graph/VKVertexInputConfig.h>
|
||||
#include<hgl/graph/mtl/Material2DCreateConfig.h>
|
||||
#include<hgl/component/StaticMeshComponent.h>
|
||||
#include<hgl/component/MeshComponent.h>
|
||||
|
||||
using namespace hgl;
|
||||
using namespace hgl::graph;
|
||||
@@ -83,7 +83,7 @@ private:
|
||||
rad=deg2rad<double>((360.0f/double(TRIANGLE_NUMBER))*i); //这里一定要加<double>或<float>,否则结果用int保存会出现问题
|
||||
mat=rotate(rad,Vector3f(0,0,1));
|
||||
|
||||
CreateComponent<StaticMeshComponent>(mat,scene_root,render_obj);
|
||||
CreateComponent<MeshComponent>(mat,scene_root,render_obj);
|
||||
}
|
||||
|
||||
return(true);
|
||||
|
Reference in New Issue
Block a user