esp::gfx::DrawableConfiguration class

Constructors, destructors, conversion operators

DrawableConfiguration(const Mn::ResourceKey& lightSetupKey, const Mn::ResourceKey& materialKey, esp::metadata::attributes::ObjectInstanceShaderType materialDataType, DrawableGroup* group, const std::shared_ptr<gfx::InstanceSkinData>& skinData, const std::shared_ptr<PbrIBLHelper>& pbrIblData, const std::shared_ptr<metadata::attributes::PbrShaderAttributes>& pbrShaderConfig)

Public functions

auto getSkinData() const -> std::shared_ptr<InstanceSkinData>
auto getPbrIblData() const -> std::shared_ptr<PbrIBLHelper>
void setPbrIblData(std::shared_ptr<PbrIBLHelper> pbrIblData)
auto getPbrShaderConfig() const -> std::shared_ptr<metadata::attributes::PbrShaderAttributes>
void setPbrShaderConfig(std::shared_ptr<metadata::attributes::PbrShaderAttributes> pbrShaderConfig)

Public variables

const Magnum::ResourceKey lightSetupKey_
const Magnum::ResourceKey materialDataKey_
const esp::metadata::attributes::ObjectInstanceShaderType materialDataType_
esp::gfx::DrawableGroup* group_

Protected variables

std::shared_ptr<InstanceSkinData> skinData_
std::shared_ptr<PbrIBLHelper> pbrIblData_
std::shared_ptr<metadata::attributes::PbrShaderAttributes> pbrShaderConfig_

Variable documentation

const Magnum::ResourceKey esp::gfx::DrawableConfiguration::lightSetupKey_

Lighting key for this drawable

const Magnum::ResourceKey esp::gfx::DrawableConfiguration::materialDataKey_

Lighting key for this drawable

const esp::metadata::attributes::ObjectInstanceShaderType esp::gfx::DrawableConfiguration::materialDataType_

Shader being used.

esp::gfx::DrawableGroup* esp::gfx::DrawableConfiguration::group_

Optional DrawableGroup with which to render the gfx::Drawable.

std::shared_ptr<InstanceSkinData> esp::gfx::DrawableConfiguration::skinData_ protected

Skin data for use with this drawable, if appropriate.

std::shared_ptr<PbrIBLHelper> esp::gfx::DrawableConfiguration::pbrIblData_ protected

Configuration values for PBR shader to be used by this object. Only used for PbrDrawables, ignored otherwise.

std::shared_ptr<metadata::attributes::PbrShaderAttributes> esp::gfx::DrawableConfiguration::pbrShaderConfig_ protected

The attributes configuration to configure the PBR shader