marching-cubes-opengl/MCRenderer.h

29 lines
420 B
C
Raw Normal View History

#pragma once
#include "Camera.h"
#include "Framebuffer3D.h"
#include "Shader.h"
#include "VertexBuffer.h"
class MCRenderer {
public:
MCRenderer();
void render(float delta);
private:
Shader render_shader;
Shader noise_shader;
Framebuffer3D noise;
VertexBuffer vertex_rectangle;
2021-03-19 19:42:35 +01:00
VertexBuffer mc_points;
Camera camera;
2021-03-19 23:54:24 +01:00
float time_passed = 0.0;
float *rectangle_data;
};