Added depth buffer to fix transparency, still a bug that transparency goes wrong at when you press a button.

This commit is contained in:
tleety
2015-09-14 16:53:14 +02:00
parent 1b9da2de1b
commit b9eda67a2a
8 changed files with 235 additions and 36 deletions
+2
View File
@@ -93,6 +93,8 @@ private:
void CreateBuffers();
GLuint CreateQuad();
static bool DepthSort(const std::shared_ptr<RenderJob> &i, const std::shared_ptr<RenderJob> &j) { return (i->Depth < j->Depth); }
void DrawDeferred(RenderQueue &objects, RenderQueue &lights);
void DrawForward(RenderQueue &objects, RenderQueue &lights);
void DrawScene(RenderQueue &objects, ShaderProgram &program);