3#include "EntityDefinition.h"
4#include "Resources/Resources.h"
6#include "Foundation/ComponentModel/Component.h"
12namespace Cogs::Core::Volumetric
16 static void registerType();
18 glm::vec3 extentMin = glm::vec3(-1.f);
19 glm::vec3 extentMax = glm::vec3(-1.f);
22 glm::uvec3 resolution = glm::uvec3(32u);
23 std::vector<float> thresholds = { 0.5f };
24 float pointWeight = 1.f;
25 float basisStdDev = 3.5f;
26 uint32_t basisQuality = 3;
27 bool attachData =
false;
28 float attachedDataScale = 1.f;
29 float attachedDataOffset = 0.f;
32 bool flipOrientation =
true;
33 bool innerLayerOpaque =
true;
34 float layerDepthBiasStep = 1.f;
40template<>
inline Cogs::StringView getName<Cogs::Core::Volumetric::DensityFieldComponent>() {
return "VolDensityFieldComponent"; }
Base class for Component instances.
Provides a weakly referenced view over the contents of a string.
std::shared_ptr< ComponentModel::Entity > EntityPtr
Smart pointer for Entity access.