GithubHelp home page GithubHelp logo

glslcookbook's Introduction

This is the example programs from the OpenGL 4.0 Shading Language Cookbook, by David Wolff. The source code has been updated to use GLFW, and no longer requires Qt.

Requirements

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

Compiling the examples

All recipes have been tested on Linux. I hope to have them working on Windows (using MinGW) soon. Your help is welcome! Fork this project on github.

  1. Install GLFW by following the instructions on their web site.
  2. Install the latest version of GLM.
  3. Download the example code from github, or clone using git.
  4. Edit the Makefile to point to your GLFW and GLM installations.
  5. Compile by running make.

Any problems, create an issue on github.

Changes from the book

I've dropped Qt and moved to GLFW in order to make the code more easily portable. I've also moved over to gnu make.

Since the time of the book's writing, I have experienced problems with GLEW under a 4.x core profile. When doing some research it appears that there are some fundemental issues with GLEW and core profiles. Therefore, I've dropped the dependence on GLEW, and I'm using a pre-packaged header and loader that was created using the OpenGL Loader Generator.

The code has been fully tested with OpenGL 4.3 and compiles under Linux with the latest NVIDIA drivers, and will soon (hopefully) be tested with MinGW on Windows.

The major changes are listed below:

  • Dropped dependence on Qt.
  • Uses GLFW, GLM, and GLLoadGen(optional).
  • Dropped dependence on libnoise for Chapter 8 examples. Instead, uses the noise functions available in GLM > 0.9.3.

glslcookbook's People

Contributors

dangets avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.