Basic transform stuff
This commit is contained in:
1 parent
02e8fdd02c
commit
65e3bb43a5
18 files changed
+363
-38
No files matched your search
@@ -21,6 +21,14 @@ RenderManager::RenderManager(DawnGame &game) :
|
||||
void RenderManager::init() {
|
||||
this->standardRenderPipeline->init();
|
||||
this->simpleShader->compile();
|
||||
|
||||
// Setup the alpha blend function.
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glEnable(GL_BLEND);
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glDepthMask(GL_TRUE);
|
||||
glDepthFunc(GL_LESS);
|
||||
}
|
||||
|
||||
RenderTarget & RenderManager::getBackBuffer() {
|
||||
|
||||
Reference in new issue
Block a user