33 lines
501 B
C
Raw Permalink Normal View History

#pragma once
#include "Camera.h"
#include "Framebuffer3D.h"
#include "Shader.h"
#include "Texture.h"
#include "VertexBuffer.h"
class MCRenderer {
public:
2021-03-20 00:57:18 +01:00
MCRenderer(int size_x, int size_y, int size_z);
void render(float delta);
private:
2021-03-20 00:57:18 +01:00
int size_x;
int size_y;
int size_z;
2021-03-21 19:31:49 +01:00
float height = 0.0;
Shader render_shader;
Shader noise_shader;
Framebuffer3D noise;
VertexBuffer vertex_rectangle;
Camera camera;
Texture albedo;
Texture bump;
};