Merge branch 'master' of https://git.etud.insa-toulouse.fr/serviere/EnginPasTangible
This commit is contained in:
commit
f3d0ac679a
1 changed files with 0 additions and 4 deletions
|
@ -92,10 +92,6 @@ void main(){
|
||||||
float pan=-MousePos.x/180.;
|
float pan=-MousePos.x/180.;
|
||||||
float tilt=-MousePos.y/180.;
|
float tilt=-MousePos.y/180.;
|
||||||
//tilt=max(min(tilt,3.14*.45),-3.14*.45);
|
//tilt=max(min(tilt,3.14*.45),-3.14*.45);
|
||||||
int parity = int(tilt/3.14-.5);
|
|
||||||
if(parity%2==1){
|
|
||||||
pan+=3.14;
|
|
||||||
}
|
|
||||||
|
|
||||||
vec3 ez = vec3(cos(tilt)*sin(pan),sin(tilt),cos(tilt)*cos(pan));//normalize(lookingAt-posCam);////base orthonormée
|
vec3 ez = vec3(cos(tilt)*sin(pan),sin(tilt),cos(tilt)*cos(pan));//normalize(lookingAt-posCam);////base orthonormée
|
||||||
vec3 ex = normalize(cross(ez,vec3(0.,1.,0.)));
|
vec3 ex = normalize(cross(ez,vec3(0.,1.,0.)));
|
||||||
|
|
Loading…
Reference in a new issue