finished tutorial 03

This commit is contained in:
h4570
2022-08-21 16:40:26 +02:00
parent 4303cc2c97
commit 409ee294eb
27 changed files with 349 additions and 25 deletions
@@ -83,8 +83,8 @@ void MinecraftPipeline::initBBox() {
bbox = new RenderBBox(block.vertices, block.count);
}
void MinecraftPipeline::render(std::vector<McpipBlock*> blocks, Texture* t_tex,
const bool& isMulti,
void MinecraftPipeline::render(std::vector<McpipBlock*> blocks,
const Texture* t_tex, const bool& isMulti,
const bool& fullClipChecks) {
auto texBuffers = rendererCore->texture.useTexture(t_tex);
+4
View File
@@ -19,6 +19,10 @@ Renderer3D::~Renderer3D() {}
void Renderer3D::init(RendererCore* core) { utility.init(core); }
void Renderer3D::usePipeline(Renderer3DPipeline& pipeline) {
usePipeline(&pipeline);
}
void Renderer3D::usePipeline(Renderer3DPipeline* pipeline) {
if (currentPipeline != pipeline) {
if (currentPipeline) currentPipeline->onUseEnd();