vec2 offSet[4];
offSet[0] = vec2(0.,0.);
offSet[1] = vec2(0.,1.);
offSet[2] = vec2(1.,0.);
offSet[3] = vec2(1.,1.);
vec3 zAxis = normalize( vNormal[0] );
vec3 yAxis = vec3( 0.0, 1.0, 0.0 );
vec3 xAxis = normalize( cross(zAxis, yAxis) );
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string serialIn; | |
unsigned char buffer[1]; | |
while( readBytes( buffer, 1) > 0){ | |
if (buffer[0] == '\n'){ | |
break; | |
} | |
serialIn.push_back(buffer[0]); | |
}; |
cam.setPosition( cam.getPosition()+(targetPos-cam.getPosition())*0.01 );
cam.lookAt(targetPos);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am attesting that this GitHub handle patriciogonzalezvivo is linked to the Tezos account tz1NqueFctvNCQrsELm6k4N6XfwAYu5Qp5LN for tzprofiles | |
sig:edsigtyGKhQWuzB73dYzJfELSjYJt7LwbFEsKD61WF3oVH7Lhok5dgXu3bdZth1U19QwCts7xXwaDyCh7Auqr9Cov1xTXz9Lv4s |
This tutorial is partialy based on Yuriy’s Czoli article ‘Processing LiDAR to extract building heights’.
- Install Postgres, PostGIS and OSM-PostGIS tools
brew install postgis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SHADER=$1 | |
SEC=$1 | |
COUNTER=0 | |
for i in `seq -w 0.01 .031 $SEC`; do | |
echo $i | |
`glslViewer $SHADER -s $i -o frame-$COUNTER.png` | |
let COUNTER=COUNTER+1 |
Extracted from https://github.com/rpavlik/maya2osg/tree/master/src/GLSL
varying vec2 vTexCoord;
varying vec3 vNormal;
varying vec3 vEye;
void main() {