couch/core/Shaders/SkyboxShader.cpp
Dane Johnson a2cf4bc7ef Skybox
2021-01-23 11:54:34 -06:00

13 lines
341 B
C++

#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"; }