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
-W, --width arg Set Window Width (default: -1)
-H, --height arg Set Window Height (default: -1)
-D, --display arg Display (default: -1)
-R, --dynamic-range arg Set Dynamic Range ldr,hdr16,hdr32 (default:
hdr16)
-m, --multi-sample arg Set MSAA (MultiSampling) (default: 0)
--super-multisample arg Set Super MultiSampling MSAA (default: 0)
-p, --use-postprocessing Use Post Processing (default: true)
-C, --disable-colorspace Use Color Space Convertion
-s, --glsl-version arg Override glsl version from system
(110,120,130,140,150,330...) (default: -1)-
Chromatic Aberration
-
Sobel Edge Detection
-
Screen Space Ambient Occlusion
-
Gaussian/Box Blur
-
Mist Fog
-
Volumetric Scattering
-
ColorSpace
-
Pixelate
-
Grain
-
Bloom
-
Contact Shadow
-
Vignette
sudo 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
sudo apt-get install glslang-tools 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 libssl-devgit submodule update --init --recursive
mkdir build && cd build
cmake ..
make
make DownloadAssetThis project is licensed under the MIT 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 argumentsMESA_DEBUG=1
MESA_GLSL=source
MESA_SHADER_DUMP_PATH=dump
INTEL_DEBUG=perfBuild Asset File
tarSetup Build.
cmake .. -DCMAKE_INSTALL_PREFIX=/target -DCMAKE_BUILD_TYPE=ReleaseInstall
cmake --build . --parallel $(nproc --all) --target install ;









































