Skip to content

Commit

Permalink
disable unions in glm vector types
Browse files Browse the repository at this point in the history
  • Loading branch information
ichinii committed Dec 3, 2024
1 parent 7bdedca commit fcb1482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Intern/rayx-core/src/Shader/Ray.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct RAYX_API Ray {
double m_energy;

/// The complex electric field
ElectricField m_field = ElectricField{{0, 0}, {0, 0}, {0, 0}};
ElectricField m_field;

/// The distance that this ray has already traveled (in mm).
double m_pathLength;
Expand Down
1 change: 1 addition & 0 deletions Intern/rayx-core/src/glm.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

#define GLM_ENABLE_EXPERIMENTAL
#define GLM_FORCE_UNRESTRICTED_GENTYPE
#define GLM_FORCE_XYZW_ONLY
#include <glm.hpp>

0 comments on commit fcb1482

Please sign in to comment.