material emissive color separated from base color; voxel gi fix; gamma fixes; slightly reordered gbuffer;

This commit is contained in:
turanszkij
2019-03-02 16:23:54 +00:00
parent aa8fa272d1
commit 30a4f4910b
37 changed files with 218 additions and 111 deletions
+1 -2
View File
@@ -190,8 +190,7 @@ LightWindow::LightWindow(wiGUI* gui) : GUI(gui)
LightComponent* light = wiRenderer::GetScene().lights.GetComponent(entity);
if (light != nullptr)
{
XMFLOAT3 col = args.color.toFloat3();
light->color = XMFLOAT3(powf(col.x, 1.f / 2.2f), powf(col.y, 1.f / 2.2f), powf(col.z, 1.f / 2.2f));
light->color = args.color.toFloat3();
}
});
lightWindow->AddWidget(colorPicker);