Skip to content

Commit

Permalink
Merge pull request #1 from F-Mu/backup
Browse files Browse the repository at this point in the history
伽马矫正
  • Loading branch information
F-Mu authored Jun 14, 2023
2 parents 20a8a1b + 17ab31e commit ed66f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/function/framework/component/number_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace crp {
number = num;
if (number == 0)return;
auto color = glm::vec3{1., 0.8, 0.4} * (static_cast<float>(number) - deltaTime) / 10.f;
// for (int i = 0; i < 3; ++i)color[i] = pow(color[i], 0.45f);// gamma校正
for (int i = 0; i < 3; ++i)color[i] = pow(color[i], 0.45f);// gamma校正
auto vertices = std::move(Number::getNumber(width, height, color, number));
std::vector<uint32_t> indices;
for (int i = 0; i < vertices.size(); i += 4) {
Expand Down

0 comments on commit ed66f69

Please sign in to comment.