Skip to content

A simple command-line tool to test OpenGL ES 2.0 fragment shaders on the Raspberry Pi.

License

Notifications You must be signed in to change notification settings

dff180/pishadertoy

Repository files navigation

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

About

A simple command-line tool to test OpenGL ES 2.0 fragment shaders on the Raspberry Pi.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published