OpenGL-Sample icon indicating copy to clipboard operation
OpenGL-Sample copied to clipboard

Opengl sample projects with glad, glfw, glm, stb_image, assimp, imgui.

OpenGL-Sample

Description

  • This is a repository for OpenGL demo projects I had done.

Contents

  • OpenGLSample A cmake project for learning opengl.

Third Party Libraries

  • GLAD
  • GLFW
  • GLM
  • STB_IMAGE
  • ASSIMP
  • DEAR_IMGUI

All third party libraries are added as git submodule into this project.

Installation Instructions

git clone https://github.com/thezzw/OpenGL-Demo.git --recursive
mkdir build
cd build
cmake ..
  • OpenGLSample

    1. Open build/OpenGLSample.sln with Visual Studio.
    2. Right click one project with exe_ as the prefix and select it as start project.
    3. Click run button.
    • Current effect:
    1. Boxes with various lights.
    2. Load a model from .obj.
    3. Add animated light effect.
    4. Add imgui backends.
    5. Linear depth image.
    6. Stencil test.
    7. Grass with alpha pass.
    8. Glasses.
    9. Test kernel functions.
    10. Add skybox.
    11. Add mirror and glass.
    12. Test geometry shader.
    13. Draw asteroids normally.
    14. Draw 100000 asteroids with instancing.
    15. Test Blinn-Phong shader model.
    16. Shadows. acne bias pcf
    17. HDR. Reinhard Tone Mapping. Exposure.
    18. 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.
    19. Simple PBR.

Useful Link