esp::gfx::PbrShader::Configuration class

PBR Shader configuration.

Constructors, destructors, conversion operators

Configuration() defaulted explicit

Public functions

auto flags() const -> Flags
Flags.
auto setFlags(Flags flags) -> Configuration&
Set flags.
auto lightCount() const -> Magnum::UnsignedInt
Light count.
auto setLightCount(Magnum::UnsignedInt count) -> Configuration&
Set light count.
auto jointCount() const -> Magnum::UnsignedInt
Joint count.
auto perVertexJointCount() const -> Magnum::UnsignedInt
Per-vertex joint count.
auto secondaryPerVertexJointCount() const -> Magnum::UnsignedInt
Secondary per-vertex joint count.
auto setJointCount(Magnum::UnsignedInt count, Magnum::UnsignedInt perVertexCount, Magnum::UnsignedInt secondaryPerVertexCount = 0) -> Configuration&
Set joint count.

Function documentation

Configuration& esp::gfx::PbrShader::Configuration::setJointCount(Magnum::UnsignedInt count, Magnum::UnsignedInt perVertexCount, Magnum::UnsignedInt secondaryPerVertexCount = 0)

Set joint count.

count describes an upper bound on how many joint matrices get supplied to each draw with setJointMatrices() / setJointMatrix().

The perVertexCount and secondaryPerVertexCount parameters describe how many components are taken from JointIds / Weights and SecondaryJointIds / SecondaryWeights attributes. Both values are expected to not be larger than 4, setting either of these to 0 means given attribute is not used at all. If both perVertexCount and secondaryPerVertexCount are set to 0, skinning is not performed.

Default value for all three is 0.