You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BrianSipple 2fa6bf3eb0 fix readme command for offline installing 8 years ago
..
README-de.md fix readme command for offline installing 8 years ago
README-it.md fix readme command for offline installing 8 years ago
README.md fix readme command for offline installing 8 years ago
index.php breaking the appendix in parts 8 years ago

README.md

How can I navigate this book off-line?

Lets say you have a long trip and you want to use it to teach yourself some shaders. In that case you can make a local copy of this book on your computer and run a local server.

For that you only need Python 2.6 and a git client. On MacOS and Raspberry Pi computers Python is installed by default but you still need to install a git client. For that:

In MacOSX be sure to have homebrew installed and then on your terminal do:

brew update
brew upgrade
brew install git

On Raspberry Pi you need to do:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git-core glslviewer

Once you have everything installed you just need to do:

cd ~
git clone --recursive https://github.com/patriciogonzalezvivo/thebookofshaders.git
cd thebookofshaders
git submodule foreach git submodule init && git submodule update
php -S localhost:8000

Then open your browser to http://localhost:8000/