mirror of
https://github.com/Mauler125/r5sdk.git
synced 2026-10-14 20:36:55 +02:00
Recast: make application background uniform
Make it uniform until an artificial horizon or skybox variant is implemented.
This commit is contained in:
1 parent
7991c2e18d
commit
3ed1b67663
1 file changed
+11
@@ -320,6 +320,16 @@ bool sdl_init(SDL_Window*& window, SDL_Renderer*& renderer, int &width, int &hei
|
||||
// Gradient background
|
||||
void draw_background(const GLfloat width, const GLfloat height)
|
||||
{
|
||||
glClearColor(0.24f, 0.26f, 0.28f, 1.0f);
|
||||
|
||||
rdIgnoreUnused(width);
|
||||
rdIgnoreUnused(height);
|
||||
|
||||
// TODO: make this some sort of a static sphere
|
||||
// to create a skybox effect since this gradient
|
||||
// approach isn't fantastic. For now we use a
|
||||
// uniform background.
|
||||
/*
|
||||
glBegin(GL_QUADS);
|
||||
|
||||
// top-left
|
||||
@@ -339,6 +349,7 @@ void draw_background(const GLfloat width, const GLfloat height)
|
||||
glVertex2f(0.0f, height);
|
||||
|
||||
glEnd();
|
||||
*/
|
||||
}
|
||||
|
||||
#if 1
|
||||
|
||||
Reference in new issue
Block a user