mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Removed some new keywords
This commit is contained in:
@@ -66,15 +66,10 @@ namespace Nuake
|
||||
|
||||
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(float) * 3, (void*)0);
|
||||
glEnableVertexAttribArray(0);
|
||||
|
||||
// TODO: mem leak.
|
||||
m_Texture = new CubemapTexture("Res/Textures/Skyboxes/1/japan");
|
||||
m_Hdr = new HDRTexture("Res/Textures/Skyboxes/HDR/OldIndustrialHall.jpg");
|
||||
}
|
||||
|
||||
void Skybox::Draw(glm::mat4 projection, glm::mat4 view)
|
||||
{
|
||||
|
||||
glDepthMask(GL_FALSE);
|
||||
m_Texture->Bind(3);
|
||||
m_Hdr->Bind(4);
|
||||
|
||||
@@ -63,7 +63,6 @@ namespace Nuake {
|
||||
glEnableVertexAttribArray(0);
|
||||
|
||||
|
||||
m_HDRTexture = new HDRTexture(path);
|
||||
// Create cubemap.
|
||||
CreateHDRCubemap();
|
||||
// Create convulated from cubemap.
|
||||
|
||||
Reference in New Issue
Block a user