1 inline void Material::Material::setName(
const std::string& name) {
5 inline void Material::setBaseColorFactor(
const Math::Vec4f& factor) {
6 _constants.baseColor = factor;
9 inline void Material::setEmissiveFactor(
const Math::Vec3f& factor) {
10 _constants.emissive = factor;
13 inline void Material::setMetallicFactor(
float factor) {
14 _constants.metallic = factor;
17 inline void Material::setRoughnessFactor(
float factor) {
18 _constants.roughness = factor;
22 _baseColorTexture.texture = texture;
23 _baseColorTexture.texCoord = texCoord;
27 _metallicRoughnessTexture.texture = texture;
28 _metallicRoughnessTexture.texCoord = texCoord;
32 _normalTexture.texture = texture;
33 _normalTexture.texCoord = texCoord;
34 _constants.normalTextureScale =
scale;
38 _occlusionTexture.texture = texture;
39 _occlusionTexture.texCoord = texCoord;
40 _constants.occlusionTextureStrength = strength;
44 _emissiveTexture.texture = texture;
45 _emissiveTexture.texCoord = texCoord;
Dummy class for a shared pointer.