From 1145cb8a53e6346ba5a7f26b098e10b65bda3710 Mon Sep 17 00:00:00 2001 From: failcake <4944278+edunad@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:46:57 +0100 Subject: [PATCH] Fix particle engine plugin --- rawrbox.render/src/plugins/particle_engine.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rawrbox.render/src/plugins/particle_engine.cpp b/rawrbox.render/src/plugins/particle_engine.cpp index a7d68eab..c0a00703 100644 --- a/rawrbox.render/src/plugins/particle_engine.cpp +++ b/rawrbox.render/src/plugins/particle_engine.cpp @@ -17,7 +17,6 @@ namespace rawrbox { void ParticleEnginePlugin::createSignatures() { if (this->_signature != nullptr || this->_signatureBind != nullptr) RAWRBOX_CRITICAL("Signatures already bound!"); - if (rawrbox::MAIN_CAMERA == nullptr) RAWRBOX_CRITICAL("Clustered plugin requires at least one camera!"); std::vector resources = { // CAMERA ------ @@ -76,8 +75,6 @@ namespace rawrbox { } void ParticleEnginePlugin::createPipelines() { - if (rawrbox::MAIN_CAMERA == nullptr) RAWRBOX_CRITICAL("Particle engine plugin requires at least one camera!"); - rawrbox::PipeComputeSettings settings; settings.signatures = {this->_signature}; @@ -88,7 +85,7 @@ namespace rawrbox { } void ParticleEnginePlugin::upload() { - if (this->_signature == nullptr || this->_signatureBind == nullptr || this->_uniforms == nullptr) RAWRBOX_CRITICAL("Plugin not initialized!"); + if (this->_signature == nullptr || this->_dynamicSignature == nullptr || this->_uniforms == nullptr) RAWRBOX_CRITICAL("Plugin not initialized!"); // Compute bind --- this->_signature->GetStaticVariableByName(Diligent::SHADER_TYPE_COMPUTE, "Camera")->Set(rawrbox::CameraBase::uniforms);