OpenGL之——多光源

 竖直向上的平行光,四个点光源,还有与摄像头方向一致的手电筒光源  主要代码: #include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include "Shader.h" #include "Camera.
相关文章
相关标签/搜索