A collection of OpenGL Samples, work in progress, for personal educational purposes.
Usage:
OpenGL Sample: GLSample [OPTION...]
GLSample options:
-h, --help helper information.
-d, --debug Enable Debug View. (default: true)
-t, --time arg How long to run sample (default: 0)
-f, --fullscreen Run in FullScreen Mode
-v, --vsync Vertical Blank Sync
-g, --opengl-version arg OpenGL Version (default: -1)
-F, --filesystem arg FileSystem (default: .)
-r, --renderdoc Enable RenderDoc
-G, --gamma-correction Enable Gamma Correction
-W, --width arg Set Window Width (default: -1)
-H, --height arg Set Window Height (default: -1)
-D, --display arg Display (default: -1)
-m, --multi-sample arg Set MSAA (default: 0)
-p, --use-postprocessing Use Post Processing (default: true)
-s, --glsl-version arg Override glsl version from system
-
Chromatic Aberration
-
Sobel Edge Detection
-
Screen Space Ambient Occlusion
-
Gaussian/Box Blur
-
Mist Fog
-
Volumetric Scattering
-
ColorSpace
-
Pixelate
-
Grain
-
Bloom
-
Contact Shadow
apt-get install pkg-config libsdl2-dev libfreeimage-dev libfmt-dev libglm-dev libgtest-dev googletest mesa-common-dev mesa-utils libopenal-dev libalut-dev
apt-get install glslang-tools libassimp-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev binutils-dev libeigen3-dev libglu1-mesa-dev libbz2-dev \
libzip-dev libogg-dev libopus-dev libvorbis-dev
git submodule update --init --recursive
mkdir build && cd build
cmake ..
make
make DownloadAsset
This project is licensed under the GPL+3 License - see the LICENSE file for details
Models downloaded from Morgan McGuire's Computer Graphics Archive
Force the system to try to use the NVIDIA GPU. This is very useful when using a system with multiple GPUs.
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia program arguments