Volumetric cloud updates (#544)

- Reprojection update
- Cloud model changes
- Weather map import
- Local lights
- Environment capture
- Volumetric cloud shadow
- Aerial perspective for clouds

Co-authored-by: Silas Oler <silasmartins@outlook.dk>
This commit is contained in:
Turánszki János
2022-08-30 16:37:51 +02:00
committed by GitHub
parent 6a2173f699
commit 73ee94d114
56 changed files with 1673 additions and 1144 deletions
+5 -5
View File
@@ -42,10 +42,10 @@ void ForceFieldWindow::Create(EditorComponent* _editor)
switch (args.iValue)
{
case 0:
force->type = ENTITY_TYPE_FORCEFIELD_POINT;
force->type = ForceFieldComponent::Type::Point;
break;
case 1:
force->type = ENTITY_TYPE_FORCEFIELD_PLANE;
force->type = ForceFieldComponent::Type::Plane;
break;
default:
assert(0); // error
@@ -53,8 +53,8 @@ void ForceFieldWindow::Create(EditorComponent* _editor)
}
}
});
typeComboBox.AddItem("Point");
typeComboBox.AddItem("Plane");
typeComboBox.AddItem("Point", (uint64_t)ForceFieldComponent::Type::Point);
typeComboBox.AddItem("Plane", (uint64_t)ForceFieldComponent::Type::Plane);
typeComboBox.SetEnabled(false);
typeComboBox.SetTooltip("Choose the force field type.");
AddWidget(&typeComboBox);
@@ -105,7 +105,7 @@ void ForceFieldWindow::SetEntity(Entity entity)
if (force != nullptr)
{
typeComboBox.SetSelected(force->type == ENTITY_TYPE_FORCEFIELD_POINT ? 0 : 1);
typeComboBox.SetSelectedByUserdataWithoutCallback((uint64_t)force->type);
gravitySlider.SetValue(force->gravity);
rangeSlider.SetValue(force->range);