void Ball::draw() { ofNoFill(); ofSetColor(ofColor(100,100,100, 125)); ofDrawBox(pos.x, pos.y, 0, strechedRadius, strechedRadius, strechedRadius); ofSetColor(ofColor(255, 55, 55, 255)); ofDrawIcoSphere(pos.x, pos.y, radius/4); }
//-------------------------------------------------------------- void ofApp::draw(){ cam.begin(); shader.begin(); shader.setUniform2f("u_resolution", ofGetWidth(), ofGetHeight()); shader.setUniform1f("u_time", ofGetElapsedTimef()); ofSetColor(255, 0, 0); ofDrawIcoSphere(100); shader.end(); cam.end(); }