Basic transform stuff

This commit is contained in:
YourWishes committed 2022-10-21 22:01:37 -07:00
1 parent 043873cc2d
commit be529b70c1
18 files changed
+363 -38

No files matched your search

+8
View File
@@ -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() {