OpenGL之——多光源

 豎直向上的平行光,四個點光源,還有與攝像頭方向一致的手電筒光源  主要代碼: #include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include "Shader.h" #include "Camera.
相關文章
相關標籤/搜索