15 for (
auto& primitiveSet : meshInstance->mesh->getPrimitiveSets()) {
31 pipelineIdExtraPart.
irradianceMapInfo =
static_cast<uint32_t
>(material->getIrradianceMap() && material->getIrradianceMap()->getEnvironnementTexture() ? 1 : 0);
32 pipelineIdExtraPart.
prefilteredMapInfo =
static_cast<uint32_t
>(material->getPrefilteredMap() && material->getPrefilteredMap()->getEnvironnementTexture() ? 1 : 0);
34 pipelineId =
Pipeline::Id::create(pipelineIdPrimitivePart, pipelineIdMaterialPart, pipelineIdExtraPart);
Id of the Pipeline. It's a concatenation of three parts: PrimitivePart, MaterialPart and PipelinePart...
Describes the material. How is the material composed, with textures, no textures, etc...
std::map< Render::Pipeline::Id, std::vector< PrimitiveSetInstance > > _primitiveSets
Resource::SharedPtr< Render::SkyBox > _skyBox
const std::vector< Scene::Node * > getLights() const
Dummy class for a shared pointer.
void addMeshInstance(Scene::Node &node, const lug::Graphics::Renderer &renderer) override final
const std::map< Render::Pipeline::Id, std::vector< PrimitiveSetInstance > > getPrimitiveSets() const
void clear() override final
static Id create(PrimitivePart primitivePart, MaterialPart materialPart, ExtraPart extraPart)
Create a pipeline id.
Pipeline::Id::PrimitivePart pipelineIdPrimitivePart
void addLight(Scene::Node &node) override final
const MeshInstance * getMeshInstance() const
void addSkyBox(Resource::SharedPtr<::lug::Graphics::Render::SkyBox > skyBox) override final
static SharedPtr< T > cast(const SharedPtr< RhsT > &rhs)
Dynamic casting of a SharedPtr to another one (RhsT to T)
const Resource::SharedPtr< Render::SkyBox > getSkyBox() const
std::size_t getLightsCount() const
const DisplayMode & getDisplayMode() const
std::vector< Scene::Node * > _lights