Basic transform stuff
This commit is contained in:
@ -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