Skip to content

Instantly share code, notes, and snippets.

View unohee's full-sized avatar

Heewon Oh unohee

View GitHub Profile
@unohee
unohee / gist:b6769618bbedff5b12d5500ffec05845
Created April 8, 2016 18:54 — forked from ofZach/gist:8242765
billboard using ofNode / ofCamera
//--------------------------------------------------------------
void testApp::draw(){
glEnable(GL_DEPTH_TEST);
ofEnableLighting();
ofLight light;
light.setPosition(ofPoint(-200,0, -1000));
light.lookAt( ofPoint(-1000,0,0));
light.setDirectional();