Extracted from https://github.com/rpavlik/maya2osg/tree/master/src/GLSL
varying vec2 vTexCoord;
varying vec3 vNormal;
varying vec3 vEye;
void main() {
Extracted from https://github.com/rpavlik/maya2osg/tree/master/src/GLSL
varying vec2 vTexCoord;
varying vec3 vNormal;
varying vec3 vEye;
void main() {
varying vec4 vPos;
varying vec3 vNormal;
void main(){
So, let’s flip a coin: if it’s heads, play a drum, if it’s tails, play a cymbal. Easy. We can emulate a coin flip with our one_in function (introduced in the section on randomness) specifying a probability of 1 in 2: one_in(2). We can then use the result of this to decide between two pieces of code, the code to play the drum and the code to play the cymbal: | |
loop do | |
if one_in(2) | |
sample :drum_heavy_kick | |
else | |
sample :drum_cymbal_closed | |
end | |
// log into the project folder | |
make | |
// If succesful then | |
MESA_GL_VERSION_OVERRIDE=2.1 bin/project_name |
// 1 - Move the Data folder inside to compiled Application | |
// Add this line into ofApp.cpp | |
ofSetDataPathRoot("../Resources/data/"); | |
// 2- Click project file (blue icon at top-left)->Build Phases->Run Script | |
// Paste the following line at the end | |
cp -r bin/data "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources"; |
HTML CODE | |
<div id="navcontainer"> | |
<ul> | |
<li><a href="#">Milk</a></li> | |
<li><a href="#">Eggs</a></li> | |
<li><a href="#">Cheese</a></li> | |
<li><a href="#">Vegetables</a></li> | |
<li><a href="#">Fruit</a></li> | |
</ul> | |
</div> |
# Change your mac address | |
ifconfig wlan0 down | |
macchanger -m 00:11:22:33:44:55 wlan0 | |
# wkae up wlan0 interface | |
ifconfig wlan0 up | |
# start wifi | |
airmon-ng start wlan0 |