Download Latest Version v0.9.6_ add missing call_aabb2d.h to auto tools build source code.tar.gz (707.2 kB)
Email in envelope

Get an email when there's a new version of OpenGL Mathematics

Home / v0.9.3
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2024-03-24 4.0 kB
v0.9.3_ ray update and many improvements source code.tar.gz 2024-03-24 688.7 kB
v0.9.3_ ray update and many improvements source code.zip 2024-03-24 884.9 kB
Totals: 3 Items   1.6 MB 1

๐ŸŽ“ ray, struct and ci

Now we have some missing functionalities:

๐Ÿ“Œ ray sphere intersection, reflect, refract, face forward ๐Ÿ“Œ additional CI via GitHub Actions ( many thanks to @waywardmonkeys ) ๐Ÿ“Œ struct API for ivec2, ivec3, and ivec4 ( many thanks to @tarhses ) ๐Ÿ“Œ struct API improvements ( many thanks to @duarm, @waywardmonkeys ) ๐Ÿ“Œ add new functions for ivec2 and ivec3 ( many thanks to @vitassuper )

  • glm_ray_sphere(origin, dir, s, &t1, &t2)) -> bool ray sphere intersection
  • glm_ray_at(orig, dir, t, &point) point by parameter
  • glm_vec3_faceforward(N, I, Nref, dest)
  • glm_vec[2|3|4]_reflect(I, N, &dest) reflect
  • glm_vec[2|3|4]_refract(I, N, eta, &dest) refract

glm_ray_sphere():

  • t1 > 0, t2 > 0: ray intersects the sphere at t1 and t2 both ahead of the origin
  • t1 < 0, t2 > 0: ray starts inside the sphere, exits at t2
  • t1 < 0, t2 < 0: no intersection ahead of the ray
  • the caller can check if the intersection points (t1 and t2) fall within a specific range (for example, tmin < t1, t2 < tmax) to determine if the intersections are within a desired segment of the ray

and many others improvements and bug fixes, thanks to those who help to make the library more robust and better than before.

๐Ÿ› ๏ธ Bugfixes and Improvements:

Known or Possible Issues for Next Versions:

โค๏ธ Sponsorship: Consider become a sponsor for cglm

Supporting cross platform, multiple OS-es and multiple CPUs requires multiple hardwares to test on it which requires extra financial cost. Also sparing time is another big issue while working at somewhere fulltime... Your company can become a sponsor to help:

https://github.com/sponsors/recp https://opencollective.com/cglm#backer https://patreon.com/recp

Source: README.md, updated 2024-03-24