All Projects → daw42 → Glslcookbook

daw42 / Glslcookbook

Licence: mit
Example code for the OpenGL Shading Language Cookbook - 2nd Edition (3rd Edition now available)

Programming Languages

c
50402 projects - #5 most used programming language

Labels

Projects that are alternatives of or similar to Glslcookbook

Python Opengl
An open access book on Python, OpenGL and Scientific Visualization, Nicolas P. Rougier, 2018
Stars: ✭ 441 (-11.09%)
Mutual labels:  opengl
Csharpgl
🍏Object Oriented OpenGL in C#.
Stars: ✭ 454 (-8.47%)
Mutual labels:  opengl
Opengl.net
Modern OpenGL bindings for C#.
Stars: ✭ 473 (-4.64%)
Mutual labels:  opengl
Graphicsfuzz
A testing framework for automatically finding and simplifying bugs in graphics shader compilers.
Stars: ✭ 448 (-9.68%)
Mutual labels:  opengl
Rust Skia
Safe Skia Bindings for Rust
Stars: ✭ 450 (-9.27%)
Mutual labels:  opengl
Pesdk Android Demo
A fully customizable photo editor for your app.
Stars: ✭ 464 (-6.45%)
Mutual labels:  opengl
Taisei
A free and open-source Touhou Project fangame
Stars: ✭ 428 (-13.71%)
Mutual labels:  opengl
Joml
A Java math library for OpenGL rendering calculations
Stars: ✭ 479 (-3.43%)
Mutual labels:  opengl
Ffmpeg Concat
Concats a list of videos together using ffmpeg with sexy OpenGL transitions.
Stars: ✭ 451 (-9.07%)
Mutual labels:  opengl
Etlegacy Deprecated
Archived repository. For current repo, see: https://github.com/etlegacy/etlegacy
Stars: ✭ 470 (-5.24%)
Mutual labels:  opengl
Tprpix
a Cross-Platform, 2D Survival Sandbox Game Project. Based on C++17/cmake/OpenGL/SQLite3.
Stars: ✭ 448 (-9.68%)
Mutual labels:  opengl
Lwjglbook
Source code of the chapters of the book 3D Game Development with LWJGL 3
Stars: ✭ 447 (-9.88%)
Mutual labels:  opengl
Lasercrabs
Launch your LASERCRAB at walls, ceilings, and enemy heads in this indie multiplayer shooter where "move" and "attack" are synonymous.
Stars: ✭ 465 (-6.25%)
Mutual labels:  opengl
Bpy
blender python scripts
Stars: ✭ 441 (-11.09%)
Mutual labels:  opengl
Zep
Zep - An embeddable editor, with optional support for using vim keystrokes.
Stars: ✭ 477 (-3.83%)
Mutual labels:  opengl
Oreon Engine
OpenGL/Vulkan Java 3D Engine
Stars: ✭ 431 (-13.1%)
Mutual labels:  opengl
Gephi
Gephi - The Open Graph Viz Platform
Stars: ✭ 4,552 (+817.74%)
Mutual labels:  opengl
Renderhelp
⚡️ 可编程渲染管线实现,帮助初学者学习渲染
Stars: ✭ 494 (-0.4%)
Mutual labels:  opengl
Pmtech
Lightweight, multi-platform, data-oriented game engine.
Stars: ✭ 478 (-3.63%)
Mutual labels:  opengl
Hokoblur
an easy-to-use blur library for Android, support efficient dynamic blur tasks.
Stars: ✭ 467 (-5.85%)
Mutual labels:  opengl

🎉 NEW The 3rd Edition is now available!!! 🎉

Example code from the OpenGL Shading Language Cookbook, 2nd Edition

The example code from the OpenGL Shading Language Cookbook, 2nd Edition, by David Wolff and published by Packt Publishing, 2013 (ISBN: 9781782167020).

Recent changes:

  • Most examples now run on MacOS!
  • CMake build now uses package config files when finding GLM and GLFW. This should make for a more streamlined configuration. Use CMAKE_PREFIX_PATH to point CMake to your installs.
  • Examples now properly support high-density displays.

Requirements

To compile these examples, you'll need the following:

  • The GLM Mathematics Library version 0.9.6 or later. Note that versions prior to 0.9.6 may not work properly because of a switch from degrees to radians. GLM 0.9.5 will work, but you'll need to add #define GLM_FORCE_RADIANS prior to including the glm header files.
  • GLFW version 3.0 or later.

Compiling the examples

The example code builds with CMake. Note that the examples for Chapter 10 will not function on MacOS due to lack of support for compute shaders on that platform.

  1. Install GLFW by following the instructions on their web site.
  2. Install the latest version of GLM. Note that for CMake to find GLM correctly, you need to run the install "build" (e.g. make install) or install GLM from your favorite package manager. Otherwise, the CMake config files will not be created/available.
  3. Download this example code from github, or clone using git.
  4. Run cmake. If cmake has difficulties finding the GLFW or GLM installations, set the variable CMAKE_PREFIX_PATH to help cmake find them.
  5. Compile by running make.

Any problems, create an issue on github.

Tips for compiling for Windows with Visual Studio

  • Use the Visual Studio target in CMake: -G "Visual Studio...", open the Visual Studio solution. You should see one project per chapter.
  • Each chapter requires a command line argument to choose a recipe. When running in VS, be sure to set the 'Command Argument' under 'Properties' for the appropriate recipe.

OpenGL Function Loading

An OpenGL header file and a function loader for a 4.3 core profile are included with this project. They were generated using GLAD. This loader should also work on MacOS under a 4.1 core profile, but of course not all functions will load.

The code has been tested with OpenGL 4.3 on Windows/Linux and OpenGL 4.1 on MacOS.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].