charcoal/CharcoalBuiltin/TexturedPipeline.h
elipzer 94de35536a Got it working but its not working...
The UVs are off for some reason but I'm not 100% sure why. Possibly
caused by some sort of offset not being accounted for.
2018-10-14 21:19:38 -04:00

31 lines
562 B
C++

#pragma once
#include "GLUtil.h"
#include "BuiltinPipeline.h"
#include "WithCamera.h"
#include "TexturedShaderProgram.h"
#include "TexturedBatch.h"
namespace charcoal
{
namespace builtin
{
namespace textured
{
class Pipeline : public builtin::Pipeline<ShaderProgram, Batch>, public WithCamera
{
public:
void prepare_opengl() override
{
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS);
}
void prepare_uniforms() override
{
glutil::uniform_matrix(0, get_camera()->get_world_to_view_matrix());
}
};
}
}
}