Skip to content

bryonglodencissp/TwoTriangles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwoTriangles

This app simply draws two (shaded) triangles, which is basically a native offline variant of an older version of Shadertoy.

Screencast

Features

  • Edit OpenGL fragment shader files (GLSL 1.10) with your favorite text editor and watch saved changes appear near instantly
  • Modify uniform values by dragging to see the effects in realtime
  • Load and store uniform values to disk
  • Built-in 3D camera with keyboard controls (WASD for moving, arrow keys for looking around)
  • Load textures, cubemaps and HDR images

Installing

Windows

You can find a Windows build on the releases page: https://github.com/fabioarnold/TwoTriangles/releases

Arch Linux

You can obtain a package from the AUR: https://aur.archlinux.org/packages/twotris-git

Building from source

Install dependencies

OS X

Assuming you already have Xcode installed install dependencies using Homebrew:

$ brew install scons pkg-config sdl2

Arch Linux

Install dependencies using pacman:

# pacman -S base-devel scons pkg-config glew sdl2

Build and run

Clone repository and submodules:

$ git clone --recursive https://github.com/fabioarnold/TwoTriangles.git
$ cd TwoTriangles

Build the third party libraries:

$ cd lib/imgui
$ sh build_staticlib.sh
$ cd ../stb
$ sh build_staticlib.sh
$ cd ../nativefiledialog/src
$ scons debug=0
$ cd ../../..

Build and run TwoTriangles: sh build.sh run

Credits

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 94.5%
  • Shell 4.5%
  • C 1.0%