Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.51 KB

README.md

File metadata and controls

52 lines (32 loc) · 1.51 KB

pishadertoy

by dff180

Simple console tool to test OpenGL ES 2.0 fragment shaders on the Raspberry Pi.

Fragment shader and optional texture are specified on command-line.

Sample video: https://www.youtube.com/watch?v=F0mfntGDmxg

Credits

Installation

Note: The following instructions are for Raspbian Wheezy Raspberry Pi installs (2013-05-25-wheezy-raspbian). They assume that you already have set up a working development environment where you can compile the hello_pi examples.

  1. Get sources with git clone https://github.com/dff180/pishadertoy.git
  2. Install dependencies with sudo apt-get install libsoil-dev
  3. cd pishadertoy
  4. make

Running

  • Make sure to use latest firmware and 192/64 memory split

    • sudo rpi-update 192
  • Start from Raspberry Pi console or via SSH client

  • Exit program with CTRL-C

Examples

  • Using default fragment shader

    ./pishadertoy

  • Using fragment shader which doesn't need texture

    ./pishadertoy shaders/flower.f.glsl

  • Using fragment shader with texture

    ./pishadertoy shaders/relieftunnel.f.glsl textures/texl2.jpg