- This is a repository for OpenGL demo projects I had done.
- OpenGLSample A cmake project for learning opengl.
- GLAD
- GLFW
- GLM
- STB_IMAGE
- ASSIMP
- DEAR_IMGUI
All third party libraries are added as git submodule into this project.
git clone https://github.com/thezzw/OpenGL-Demo.git --recursive
mkdir build
cd build
cmake ..
-
OpenGLSample
- Open
build/OpenGLSample.sln
with Visual Studio. - Right click one project with exe_ as the prefix and select it as start project.
- Click run button.
- Current effect:
- Boxes with various lights.
- Load a model from .obj.
- Add animated light effect.
- Add imgui backends.
- Linear depth image.
- Stencil test.
- Grass with alpha pass.
- Glasses.
- Test kernel functions.
- Add skybox.
- Add mirror and glass.
- Test geometry shader.
- Draw asteroids normally.
- Draw 100000 asteroids with instancing.
- Test Blinn-Phong shader model.
- Shadows.
- HDR. Reinhard Tone Mapping. Exposure.
- Deferred shading. A RBA16F 2D texture for position vector. A RBA16F 2D texture for normal vector. A RGBA 2D texture for diffuse color and specular color.
- Simple PBR.
- Open