lightmap bake fix

This commit is contained in:
turanszkij
2018-12-22 01:05:28 +01:00
parent 9a81726f8d
commit 01525f60f2
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -260,6 +260,8 @@ void LightWindow::SetEntity(Entity entity)
haloCheckBox->SetCheck(light->IsVisualizerEnabled());
volumetricsCheckBox->SetEnabled(true);
volumetricsCheckBox->SetCheck(light->IsVolumetricsEnabled());
staticCheckBox->SetEnabled(true);
staticCheckBox->SetCheck(light->IsStatic());
colorPicker->SetEnabled(true);
typeSelectorComboBox->SetEnabled(true);
typeSelectorComboBox->SetSelected((int)light->GetType());
@@ -277,6 +279,7 @@ void LightWindow::SetEntity(Entity entity)
shadowCheckBox->SetEnabled(false);
haloCheckBox->SetEnabled(false);
volumetricsCheckBox->SetEnabled(false);
staticCheckBox->SetEnabled(false);
energySlider->SetEnabled(false);
colorPicker->SetEnabled(false);
typeSelectorComboBox->SetEnabled(false);
+1 -1
View File
@@ -134,7 +134,7 @@ float4 main(Input input) : SV_TARGET
newRay.direction_inverse = rcp(newRay.direction);
newRay.energy = 0;
bool hit = TraceSceneANY(newRay, dist);
finalResult = (hit ? 0 : NdotL) * (result.diffuse);
finalResult += (hit ? 0 : NdotL) * (result.diffuse);
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 24;
// minor bug fixes, alterations, refactors, updates
const int revision = 16;
const int revision = 17;
long GetVersion()