Nerfage pour version Debug/MSVC

This commit is contained in:
MarcEricMartel
2021-12-06 09:45:51 -05:00
parent a3c0dee1f2
commit d01e8e9c62
20 changed files with 74 additions and 36 deletions

View File

@@ -44,12 +44,14 @@ void Skybox::Init(float size){
void Skybox::Render(Transformation tran) const {
glDisable(GL_DEPTH_TEST);
glDisable(GL_BLEND);
tran.Use();
m_texture.Bind();
m_shader.Use();
m_vertexBuffer.Render();
m_shader.Disable();
glEnable(GL_DEPTH_TEST);
glEnable(GL_BLEND);
}
Texture& Skybox::GetTexture() { return m_texture; }