DeferredShading: Add bloom

This commit is contained in:
Jérôme Leclercq
2021-06-01 20:28:19 +02:00
parent 7bbe879d2f
commit 9ee3a0d6be
9 changed files with 441 additions and 20 deletions

View File

@@ -172,8 +172,8 @@ namespace Nz
TextureData& data = m_pending.textures.emplace_back();
data.format = m_attachments[attachmentIndex].format;
data.width = 100'000;
data.height = 100'000;
data.width = m_attachments[attachmentIndex].width;
data.height = m_attachments[attachmentIndex].height;
return textureId;
}

View File

@@ -338,7 +338,7 @@ namespace Nz
rightOperand = rightAsVec;
}
else if (!IsPrimitiveType(leftType) || !IsPrimitiveType(rightType))
else if (leftType != rightType)
throw std::runtime_error("unexpected division operands");
}

View File

@@ -116,7 +116,7 @@ void VecValue<ComponentCount>::BuildNodeEdition(QFormLayout* layout)
connect(spinbox, qOverload<double>(&QDoubleSpinBox::valueChanged), [=](double)
{
m_value[i] = spinbox->value();
m_value[i] = float(spinbox->value());
Q_EMIT dataUpdated(0);
UpdatePreview();