material emissive color separated from base color; voxel gi fix; gamma fixes; slightly reordered gbuffer;
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user