Skip to content

Instantly share code, notes, and snippets.

View cyrstem's full-sized avatar
🏠
Working from home

cyrstem cyrstem

🏠
Working from home
View GitHub Profile
@cyrstem
cyrstem / main.cpp
Created April 19, 2018 02:25 — forked from kylemcdonald/main.cpp
Depth in shader using openFrameworks.
#include "ofMain.h"
class ofApp : public ofBaseApp {
public:
ofShader shader;
ofEasyCam cam;
ofFbo fbo;
void setup() {
ofBackground(0);
ofFbo::Settings s;
import processing.pdf.*;
color[] rgb = {
#FF0000, #00FF00, #0000FF
};
//SPACING BETWEEN LINES
float spMin = 2;
float spMax = 4;
float strokeWidth = 0.5;