@@ -184,7 +184,6 @@ void gutil_sky_box(mat4 view_matrix, float celestial_angle, vec3 color_top,
184
184
gfx_fog (false);
185
185
gfx_texture (true);
186
186
gfx_blending (MODE_BLEND2 );
187
- gfx_bind_texture (& texture_gui2 );
188
187
189
188
mat4 tmp ;
190
189
glm_translate_to (view_matrix ,
@@ -193,19 +192,20 @@ void gutil_sky_box(mat4 view_matrix, float celestial_angle, vec3 color_top,
193
192
glm_rotate_x (tmp , glm_rad (celestial_angle * 360.0F ), model_view );
194
193
gfx_matrix_modelview (model_view );
195
194
195
+ gfx_bind_texture (& texture_sun );
196
196
gfx_draw_quads (
197
197
4 , (int16_t []) {-30 , 100 , -30 , -30 , 100 , 30 , 30 , 100 , 30 , 30 , 100 , -30 },
198
198
(uint8_t []) {0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
199
199
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF },
200
- (uint16_t []) {201 , 65 , 201 , 65 + 32 , 201 + 32 , 65 + 32 , 201 + 32 , 65 });
200
+ (uint16_t []) {0 , 0 , 0 , 256 , 256 , 256 , 256 , 0 });
201
201
202
- gfx_draw_quads (
203
- 4 ,
204
- (int16_t []) {-20 , -100 , -20 , 20 , -100 , -20 , 20 , -100 , 20 , -20 , -100 ,
205
- 20 },
206
- (uint8_t []) {0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
207
- 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF },
208
- (uint16_t []) {201 , 32 , 201 , 32 + 32 , 201 + 32 , 32 + 32 , 201 + 32 , 32 });
202
+ gfx_bind_texture ( & texture_moon );
203
+ gfx_draw_quads ( 4 ,
204
+ (int16_t []) {-20 , -100 , -20 , 20 , -100 , -20 , 20 , -100 , 20 ,
205
+ -20 , -100 , 20 },
206
+ (uint8_t []) {0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
207
+ 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF },
208
+ (uint16_t []) {0 , 0 , 0 , 256 , 256 , 256 , 256 , 0 });
209
209
210
210
gfx_blending (MODE_OFF );
211
211
gfx_write_buffers (true, true, true);
0 commit comments