3#include "Foundation/ComponentModel/Component.h"
5#include "Resources/Buffer.h"
6#include "Resources/Texture.h"
29 std::string substance;
32 glm::vec3 emissiveColor = glm::vec3(0.0, 0.0, 0.0);
33 glm::vec4 diffuseColor = glm::vec4(1.0, 1.0, 1.0, 1.0);
34 glm::vec3 specularColor = glm::vec3(0.3, 0.3, 0.3);
35 float specularPower = 80.f;
37 float roughness = 0.f;
38 glm::vec3 substanceParams = glm::vec3(0.0, 0.0, 0.0);
39 glm::vec4 parameters = glm::vec4(0.0, 0.0, 0.0, 0.0);
40 glm::vec4 clipping = glm::vec4(0.0, 0.0, 0.0, 0.0);
41 glm::vec3 minClipping = glm::vec3(0.0, 0.0, 0.0);
42 glm::vec3 maxClipping = glm::vec3(0.0, 0.0, 0.0);
43 bool hasAttributeData =
false;
47 bool allowClipping =
false;
49 int selectionEffect = 0;
50 bool surfaceVariance =
false;
51 int numSubstanceDefinitionMaps = 0;
52 bool pbrLighting =
false;
54 static void registerType();
59template<>
inline Cogs::StringView getName<Cogs::Core::TwinCadModelComponent>() {
return "TwinCadModelComponent"; }
Base class for Component instances.
BufferView< uint8_t > attributeMap
Provides a weakly referenced view over the contents of a string.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
BufferView provides a typed, reference-counted, span of an underlying buffer resource.