marching-cubes-opengl/BumpMapDemo.h

32 lines
499 B
C
Raw Permalink Normal View History

2021-04-11 19:19:50 +02:00
#pragma once
#include "Camera.h"
#include "Framebuffer3D.h"
2021-04-11 19:31:52 +02:00
#include "QuadMesh.h"
2021-04-11 19:19:50 +02:00
#include "Shader.h"
#include "Texture.h"
#include "VertexBuffer.h"
class BumpMapDemo {
public:
BumpMapDemo();
void render(float delta);
private:
float number_of_steps;
float number_of_refinement_steps;
float bump_depth;
2021-04-11 19:19:50 +02:00
Shader render_shader;
VertexBuffer vertex_rectangle;
Camera camera;
Texture albedo;
Texture bump;
Texture normal;
2021-04-11 19:31:52 +02:00
QuadMesh quad_mesh;
2021-04-11 19:19:50 +02:00
};