# 光线追踪 **Repository Path**: Morphlng/ray-tracing ## Basic Information - **Project Name**: 光线追踪 - **Description**: 使用OpenGL(FREEGLUT、GLEW)实现的光线追踪(迭代深度5)。 - **Primary Language**: C++ - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2020-12-02 - **Last Updated**: 2025-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 光线追踪 *Last Update by NZL 23/12/23* ![ray_trace.gif](./doc/img/ray_trace.gif) ## Note 1. [main.cpp](./src/main.cpp) is the entrance of the project. 2. [raytrace.cpp](./src/raytrace.cpp) defines the raytracing algorithms. 4. To create a Visual Studio project, please refer to this [blog](https://blog.csdn.net/qq_33747722/article/details/77163987) ## Installation > Strongly suggest compile under Linux/WSL, saves you a lot of time 1. Install dependencies: ```bash sudo apt update sudo apt install libglew-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev ``` > Windows user have to use Visual Studio. See the blog above. 2. Clone this project ```bash git clone https://gitee.com/Morphlng/ray-tracing.git ``` 3. Compile ```bash cd ray-tracing make -j4 ``` 4. Run ```bash ./output/main ```