18 Commits

Author SHA1 Message Date
Quentin Bazin
677992d93c [external/gamekit] Vertex attr layout is now handled by VertexBuffer. 2021-06-11 05:26:12 +02:00
Quentin Bazin
669cbf70f9 Improved support for Clang.
Fixed most of the new warnings.
2021-06-10 02:04:14 +02:00
Quentin Bazin
d5f5082bb0 Added -Wconversion and fixed warnings.
This mostly forces the casts to be explicit.
2021-06-09 04:36:26 +02:00
Quentin Bazin
8ecd91715e No longer using string to represent vertex attr. 2021-05-22 16:14:47 +02:00
Pedro Gimeno
180123c0b7 Change calls to rotate() to calls to rotateX/Y/Z
Mostly cosmetic, but will also optimize some operations if the compiler is not smart enough.

Also fix a typo in a comment.
2020-07-29 17:28:06 +02:00
Pedro Gimeno
2be3fc24a6 Fix the rotation axis of celestial objects 2020-07-28 19:31:35 +02:00
Pedro Gimeno
f4be71c731 Make celestial objects be referenced by centre instead of corner 2020-07-20 19:43:53 +02:00
Quentin Bazin
9c5f1b9374 [CelestialObject] Fixed rendering on Windows and Debian, maybe. (see #159) 2020-07-20 16:43:07 +02:00
Quentin Bazin
5119ab9985 [Lua API] Added moon, sun and stars attributes in sky definition. 2020-07-17 19:58:45 +02:00
Quentin Bazin
30e3ae2054 [ChatCommandHandler] '/time <add|set>' command added.
[CelestialObject|Skybox] Moon changes its phase everyday.
2020-07-17 19:58:45 +02:00
Quentin Bazin
c319f865a1 [CelestialObject] Now allows to control rotation speed. 2020-07-17 19:58:45 +02:00
Quentin Bazin
4e45f1583b [GameTime] Added to centralize time, sunlight intensity and sky color. 2020-07-17 19:58:45 +02:00
Quentin Bazin
f2db916357 [Skybox] Stars added. 2020-07-17 19:58:45 +02:00
Quentin Bazin
270dddb5f7 [Skybox] Moon texture added. 2020-07-17 19:58:45 +02:00
Quentin Bazin
5acb1bf437 [Skybox] Sun texture added. 2020-07-17 19:58:45 +02:00
Quentin Bazin
a1ababe8a6 [Skybox] Small tweaks. 2020-07-17 19:58:45 +02:00
Quentin Bazin
e73f436a46 Basic day/night cycle added. 2020-07-17 19:58:45 +02:00
Quentin Bazin
fe43dcdf7c Basic moon added. 2020-07-17 19:58:45 +02:00