Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compiler errors & embree miss #1

Merged
merged 5 commits into from
Feb 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix constant error
  • Loading branch information
mchenwang committed Feb 27, 2023
commit daee5791aae4e495b3e33a92e2b72b7550cb5d2d
5 changes: 5 additions & 0 deletions src/CoreLayer/Math/Constant.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#pragma once
#define _USE_MATH_DEFINES
#include <cmath>
#include <limits>

#ifdef FLT_MAX
#undef FLT_MAX
#endif // FLT_MAX

constexpr float PI = M_PI;
constexpr float INV_PI = 1.f / M_PI;
constexpr float FLT_MAX = std::numeric_limits<float>::max();
Expand Down