Vim plugin for live-coding GLSL Shaders using glslViewer on RaspberryPi
- Install glslViewer
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libfreeimage-dev
cd ~
git clone http://github.com/patriciogonzalezvivo/glslViewer
cd glslViewer
make
sudo make install
- Install Pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
And add this to the beginning of ~/.vimrc
execute pathogen#infect()
- Clone this repository on the
bundle/
folder. For example:
cd ~/.vim/bundle
git clone https://github.com/patriciogonzalezvivo/vim-glslViewer.git
Every time you open a .frag
or .fs
file it will render it through glslViewer
which will reload the shader every time you save it ;)