22USTRUCT() struct CESIUMRUNTIME_API FCesiumVoxelClassDescription {
23 GENERATED_USTRUCT_BODY()
28 UPROPERTY(EditAnywhere, Category =
"Cesium|Metadata")
36 Category =
"Cesium|Metadata",
37 Meta = (TitleProperty =
"Name"))
38 TArray<FCesiumPropertyAttributePropertyDescription> Properties;
45 Category =
"Cesium|Metadata|Statistics",
46 Meta = (TitleProperty =
"Id"))
47 TArray<FCesiumMetadataPropertyStatisticsDescription> Statistics;
58UCLASS(ClassGroup = (Cesium),
Meta = (BlueprintSpawnableComponent))
59class CESIUMRUNTIME_API UCesiumVoxelMetadataComponent
64 UCesiumVoxelMetadataComponent();
74 Meta = (DisplayName =
"Build Shader"))
87 Meta = (DisplayName =
"Generate Material"))
88 void GenerateMaterial();
91#if WITH_EDITORONLY_DATA
98 UPROPERTY(EditAnywhere, Category =
"Cesium")
99 UMaterial* TargetMaterial =
nullptr;
108 (TitleProperty =
"Custom Shader",
109 DisplayAfter =
"TargetMaterialLayer",
111 FString CustomShader = TEXT(
"return float4(1, 1, 1, 0.02);");
121 (TitleProperty =
"Additional Functions",
122 DisplayAfter =
"CustomShader",
124 FString AdditionalFunctions;
135 (TitleProperty =
"Voxel Class", DisplayAfter =
"AdditionalFunctions"))
136 FCesiumVoxelClassDescription Description;
141 FString getCustomShaderPreview()
const;
150 TObjectPtr<UTexture> _pDefaultVolumeTexture;
152 static const FString _shaderPreviewTemplate;