1#include "DefaultMaterial.h"
3#include "MaterialManager.h"
40 DiffuseColor = material->getVec4Key(
"diffuseColor");
41 EmissiveColor = material->getVec3Key(
"emissiveColor");
42 SpecularColor = material->getVec3Key(
"specularColor");
44 SpecularPower = material->getFloatKey(
"specularPower");
46 MasterColor = material->getVec4Key(
"masterColor");
48 OverrideColor = material->getBoolKey(
"overrideColor");
49 OverrideAlpha = material->getBoolKey(
"overrideAlpha");
51 DiffuseMap = material->getTextureKey(
"diffuseMap");
52 SpecularMap = material->getTextureKey(
"specularMap");
53 NormalMap = material->getTextureKey(
"normalMap");
54 OpacityMap = material->getTextureKey(
"opacityMap");
56 EnableLighting = material->getBoolKey(
"enableLighting");
58 DiffuseMapScale = material->getVec2Key(
"diffuseMapScale");
59 NormalMapScale = material->getVec2Key(
"normalMapScale");
60 SpecularMapScale = material->getVec2Key(
"specularMapScale");
62 NormalMapFactor = material->getFloatKey(
"normalMapFactor");
64 LineWidth = material->getFloatKey(
"lineWidth");
65 PointSize = material->getFloatKey(
"pointSize");
67 material->setChanged();
Material manager handling loading and processing of Material resources.
MaterialHandle getDefaultMaterial()
Get the default material.
void processLoading() final
Process loading resources.
uint16_t VariableKey
Used to lookup material properties.
static void initialize(MaterialManager *materialManager)
Initialize the default material, updating all material property keys.
@ Default
Default material.