# Lab 8 – Shadow Mapping
## Build Instructions
Copyright By PowCoder代写 加微信 powcoder
### Command Line
1. Download and Install CMake
2. Open a terminal
3. Run cmake:
cd
cmake –build
To generate an Xcode project from the command line use:
cd
cmake –build
**NOTE:** In the case of cmake the `
a CMakeLists.txt file.
**NOTE:** The `
**NOTE:** The `-G` flag sets the generator of the project to use. On **Linux**
and **macOS** this defaults to **Unix Makefiles**. On **Windows** the default
is **Visual Studio**.
**NOTE:** It’s usually a good idea to delete the `
generators.
### CMake GUI
You can use the CMake GUI to configure and generate the Visual Studio Project.
1. Download and Install CMake
2. Open the CMake GUI
3. Set the `Where is the source code:` field to the source folder
4. Set the `Where to build the binaries:` field to different location (e.g.: source_folder/build)
5. Click Configure
6. Select the project generator (this will be the project file that compiles program)
7. Click Generate
#### Windows
Once the project is created you can build the **ALL_BUILD** project followed by
building the **INSTALL** project.
#### Xcode
Once the project is created you can build the **ALL_BUILD** target followed by
the **INSTALL** target.
#### Unix Make File
In the terminal:
cd
make install
## Running
Once built and installed, all the relevant files will be in the **dist** folder
at the top level of the source folder, along with the program assets, such as
textures, shaders and geometry. The assets generally need to be in the same
path as the program.
### Linux/macOS
In the terminal type:
### Windows
Click on the **lab08.exe** from the File Explorer.
## References
Good place to learn OpenGL
https://www.learnopengl.com
Official OpenGL 4 Reference Documentation
https://www.khronos.org/registry/OpenGL-Refpages/gl4/
Official OpenGL Wiki
https://www.khronos.org/opengl/wiki/
Easy to Navigate OpenGL Function Documentation
http://docs.gl/
GLM Documentation
https://glm.g-truc.net/0.9.9/index.html
GLFW Documentation
https://www.glfw.org/
Good place for advanced graphics theory
https://www.scratchapixel.com/
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com