Skip to content

Commit

Permalink
Use shader in terminal renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
hhirsch committed Jan 3, 2016
1 parent 84e3cd3 commit ae2ce63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/engine/renderer/TerminalRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ void TerminalRenderer::render(Renderer &renderer) {
const Mesh &mesh = MeshLoader::getMesh("GUIElement.obj");
Shader &sh = ShaderLoader::getShader("color.frag");
Vector4f screenBackgroundColor = renderer.getScene()->terminal->backgroundColor;
glUseProgram(sh.handle);
glUniform4f(sh.uni("color"),
screenBackgroundColor.x,
screenBackgroundColor.y,
Expand Down

0 comments on commit ae2ce63

Please sign in to comment.