Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Dec 17, 2024
1 parent fef659d commit 10995a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Chapter10/05_HDR/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,18 @@ int main()
ImGui::Begin("Tone mapping curve", nullptr, flags);
const int kNumGraphPoints = 1001;
float xs[kNumGraphPoints];
float ysUnchimura[kNumGraphPoints];
float ysUchimura[kNumGraphPoints];
float ysReinhard2[kNumGraphPoints];
float ysKhronosPBR[kNumGraphPoints];
for (int i = 0; i != kNumGraphPoints; i++) {
xs[i] = float(i) / kNumGraphPoints;
ysUnchimura[i] = uchimura(xs[i], pcHDR.P, pcHDR.a, pcHDR.m, pcHDR.l, pcHDR.c, pcHDR.b);
ysUchimura[i] = uchimura(xs[i], pcHDR.P, pcHDR.a, pcHDR.m, pcHDR.l, pcHDR.c, pcHDR.b);
ysReinhard2[i] = reinhard2(xs[i], pcHDR.maxWhite);
ysKhronosPBR[i] = PBRNeutralToneMapping(xs[i], pcHDR.startCompression, pcHDR.desaturation);
}
if (ImPlot::BeginPlot("Tone mapping curves", { width * 0.4f, height * 0.3f }, ImPlotFlags_NoInputs)) {
ImPlot::SetupAxes("Input", "Output");
ImPlot::PlotLine("Uchimura", xs, ysUnchimura, kNumGraphPoints);
ImPlot::PlotLine("Uchimura", xs, ysUchimura, kNumGraphPoints);
ImPlot::PlotLine("Reinhard", xs, ysReinhard2, kNumGraphPoints);
ImPlot::PlotLine("Khronos PBR", xs, ysKhronosPBR, kNumGraphPoints);
ImPlot::EndPlot();
Expand Down
6 changes: 3 additions & 3 deletions Chapter11/06_FinalDemo/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1040,18 +1040,18 @@ int main()
ImGui::Begin("Tone mapping curve", nullptr, flags);
const int kNumGraphPoints = 1001;
float xs[kNumGraphPoints];
float ysUnchimura[kNumGraphPoints];
float ysUchimura[kNumGraphPoints];
float ysReinhard2[kNumGraphPoints];
float ysKhronosPBR[kNumGraphPoints];
for (int i = 0; i != kNumGraphPoints; i++) {
xs[i] = float(i) / kNumGraphPoints;
ysUnchimura[i] = uchimura(xs[i], pcHDR.P, pcHDR.a, pcHDR.m, pcHDR.l, pcHDR.c, pcHDR.b);
ysUchimura[i] = uchimura(xs[i], pcHDR.P, pcHDR.a, pcHDR.m, pcHDR.l, pcHDR.c, pcHDR.b);
ysReinhard2[i] = reinhard2(xs[i], pcHDR.maxWhite);
ysKhronosPBR[i] = PBRNeutralToneMapping(xs[i], pcHDR.startCompression, pcHDR.desaturation);
}
if (ImPlot::BeginPlot("Tone mapping curves", { width * 0.4f, height * 0.3f }, ImPlotFlags_NoInputs)) {
ImPlot::SetupAxes("Input", "Output");
ImPlot::PlotLine("Uchimura", xs, ysUnchimura, kNumGraphPoints);
ImPlot::PlotLine("Uchimura", xs, ysUchimura, kNumGraphPoints);
ImPlot::PlotLine("Reinhard", xs, ysReinhard2, kNumGraphPoints);
ImPlot::PlotLine("Khronos PBR", xs, ysKhronosPBR, kNumGraphPoints);
ImPlot::EndPlot();
Expand Down

0 comments on commit 10995a3

Please sign in to comment.