couch/core/Shaders/SkyboxShader.cpp

13 lines
341 B
C++
Raw Permalink Normal View History

2021-01-23 11:54:34 -06:00
#include "SkyboxShader.h"
#include "skybox.vert.h"
#include "skybox.frag.h"
SkyboxShader::SkyboxShader() : Shader(skybox_vert, skybox_frag) {}
void SkyboxShader::UpdateSkybox(Skybox skybox) {
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_CUBE_MAP, skybox.id);
}
Name SkyboxShader::GetName() const { return "Skybox Shader"; }