初始提交: UE5.3项目基础框架
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
|
||||
|
||||
#include "CesiumGltfPointsComponent.h"
|
||||
#include "CesiumGltfPointsSceneProxy.h"
|
||||
#include "SceneInterface.h"
|
||||
|
||||
// Sets default values for this component's properties
|
||||
UCesiumGltfPointsComponent::UCesiumGltfPointsComponent()
|
||||
: UsesAdditiveRefinement(false),
|
||||
GeometricError(0),
|
||||
Dimensions(glm::vec3(0)) {}
|
||||
|
||||
UCesiumGltfPointsComponent::~UCesiumGltfPointsComponent() {}
|
||||
|
||||
FPrimitiveSceneProxy* UCesiumGltfPointsComponent::CreateSceneProxy() {
|
||||
if (!IsValid(this)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
FCesiumGltfPointsSceneProxy* Proxy =
|
||||
new FCesiumGltfPointsSceneProxy(this, GetScene()->GetFeatureLevel());
|
||||
|
||||
FCesiumGltfPointsSceneProxyTilesetData TilesetData;
|
||||
TilesetData.UpdateFromComponent(this);
|
||||
Proxy->UpdateTilesetData(TilesetData);
|
||||
|
||||
return Proxy;
|
||||
}
|
||||
Reference in New Issue
Block a user