18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 18:47:06 +01:00
Commit Graph

28 Commits

Author SHA1 Message Date
Mateusz Włodarczyk a961393df9 macOS: guard mipmap generation call on legacy GL path (#132)
glGenerateMipmap is null on the legacy GL path in some contexts; use the
GL_GENERATE_MIPMAP fallback instead of crashing.
2026-07-13 10:15:39 +02:00
jerrrrycho d85096f64d reformat: remove redundant parentheses 2026-06-30 21:19:46 +02:00
jerrrrycho bf147dd155 refactor: replace null with nullptr 2026-06-29 02:48:25 +02:00
Hirek 1aac9b4e76 Merge pull request #111 from MaSzyna-EU07/opengl-instancing
Some rendering improvements
2026-06-16 23:09:12 +02:00
Hirek c0abea1473 Merge pull request #109 from docentYT/fix-compilation-warnings
Fix compilation warnings
2026-06-16 11:14:25 +02:00
Hirek 426ee0baac use textureGather for shadow PCF 2026-05-26 22:08:06 +02:00
docentYT 3e360607d8 Do not discard glm::normalize return value 2026-05-12 00:03:40 +02:00
Hirek 2677ef547b Fix anim true behavior 2026-05-10 13:27:57 +02:00
Hirek 3419666070 scale/endscale/localscale per node model 2026-05-10 13:12:49 +02:00
Hirek b7283d8fb9 Instanced object grouping 2026-05-07 12:13:47 +02:00
docentYT 7081dab3c2 Replace RadToDeg and DegToRad with glm::degrees and glm::radians 2026-05-02 14:51:13 +02:00
docentYT ca699d117f Remove not needed includes 2026-05-02 14:40:31 +02:00
docentYT 3628eb0fc3 Replace interpolate with std::lerp and glm::mix 2026-05-02 01:31:38 +02:00
docentYT 28baad8c5b Refactor clamp_power_of_two 2026-05-02 00:35:50 +02:00
docentYT d1f16411a1 Replace clamp with std::clamp 2026-05-01 22:14:29 +02:00
docentYT 0e6950a386 Replace count_trailing_zeros with std::countr_zero 2026-05-01 17:43:43 +02:00
docentYT ec1dfae953 Replace starts_with and ends_with with string class methods 2026-05-01 17:31:11 +02:00
docentYT ca839652bf Use the sq function to force constexpr expressions for numeric literals and enhance readability 2026-04-28 13:23:14 +02:00
docentYT 623c4f827e Remove not needed casts, variables and switch from double precission to float precission for some angle vectors 2026-04-28 00:51:17 +02:00
docentYT cba106e22e Use glm::length2 instead of glm::length where possible 2026-04-27 23:27:08 +02:00
docentYT 7d561f8443 use glm::length2 instead of glm::dot for squared length 2026-04-27 23:13:12 +02:00
docentYT b712ca4d68 lengthSquared should be changed to glm::dot, not glm::length 2026-04-27 00:41:45 +02:00
docentYT 9fef303ec0 use glm instead of Math3D in AnimModel 2026-04-26 23:14:07 +02:00
docentYT 1553f82c49 use glm instead of Math3D in Model3d 2026-04-26 22:54:12 +02:00
jakubg1 d13c27a7eb Improve the light blinking algorithm
- Fixed phase shift when the light is specified as a negative value.
  - This fixes railroad crossing lights!!!
- Improved light transition times to make them even more realistic.
- Simplified the overall code.
2026-04-01 16:09:44 +02:00
jerrrrycho 9f43dca48b refactor: create paths namespace instead of global variables 2026-03-15 11:55:30 +01:00
copilot-swe-agent[bot] 7e49aa8740 Rewrite #includes to use explicit subdirectory paths
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
2026-03-14 19:16:48 +00:00
copilot-swe-agent[bot] 0531086bb9 Reorganize source files into logical subdirectories
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
2026-03-14 19:01:57 +00:00