DeferredShading: Add bloom
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user