thebookofshaders/appendix/00
2017-08-23 11:34:44 +02:00
..
index.php Fix issue #152 2017-08-20 16:22:24 +02:00
README-de.md Remove trailing whitespaces 2017-08-23 11:34:44 +02:00
README-fr.md Merge pull request #148 from yvan-sraka/patch-6 2017-08-15 06:28:32 -07:00
README-it.md fix readme command for offline installing 2017-03-17 00:12:21 -07:00
README.md Update Appendix 0 with PHP as dependency 2017-08-15 14:53:12 +02:00

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 PHP, Python 2.6 and a git client. On MacOS and Raspberry Pi computers Python is installed by default but you still need to install PHP and a git client. For that:

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

brew update
brew upgrade
brew install git php

On Raspberry Pi you need to get Raspbian, a Debian-based Linux distribution made for Raspberry Pi and then do:

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

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/