1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Textureable sun and moon.

This commit is contained in:
RealBadAngel 2014-04-18 12:47:25 +02:00
parent da3c5c743f
commit f20267862f
2 changed files with 189 additions and 101 deletions

View file

@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef SKY_HEADER
#define SKY_HEADER
#define SKY_MATERIAL_COUNT 3
#define SKY_MATERIAL_COUNT 5
#define SKY_STAR_COUNT 200
// Skybox, rendered with zbuffer turned off, before all other nodes.
@ -127,6 +127,10 @@ private:
v3f m_stars[SKY_STAR_COUNT];
video::S3DVertex m_star_vertices[SKY_STAR_COUNT*4];
LocalPlayer* m_player;
video::ITexture* m_sun_texture;
video::ITexture* m_moon_texture;
video::ITexture* m_sun_tonemap;
video::ITexture* m_moon_tonemap;
};
#endif