-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
55 lines (42 loc) · 1.09 KB
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma once
#include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw.h"
#include "imgui/imgui_impl_opengl3.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <vector>
#include <sstream>
#include <iostream>
#include <ctime>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "lib/hdrloader.h"
#include "lib/stb_image.h"
#include "lib/filesystem.h"
#include "Utils/camera.h"
#include "Utils/PointLight.h"
#include "Utils/gui_config.h"
#include "Utils/BVH.h"
#include "Utils/render_pass.h"
#include "Utils/obj_loader.h"
#include "Utils/shader.h"
#include "Utils/help_func.h"
#include "Utils/hdr_compute.h"
using namespace glm;
float deltaTime = 0.0f;
float lastFrame = 0.0f;
float lastX = (float)SCR_WIDTH / 2.0;
float lastY = (float)SCR_HEIGHT / 2.0;
bool firstMouse = true;
Camera camera;
mat4 pre_viewproj = camera.cam_proj_mat * camera.cam_view_mat;
GLuint trianglesTextureBuffer;
GLuint nodesTextureBuffer;
GLuint pointLightBuffer;
GLuint hdrMap;
GLuint hdrCache;