readding Valentin's junky cam control (sorry)
This commit is contained in:
parent
24ff9c4d19
commit
ac64911f60
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ float Mandel(vec2 co){
|
||||||
void main(){
|
void main(){
|
||||||
vec3 lookingAt = vec3(0.);
|
vec3 lookingAt = vec3(0.);
|
||||||
vec3 posCam = vec3(2.5,2.5,2.5);//vec3(-3.*sin(Time*.15),.6*cos(Time*.15),3.*cos(Time*.15));
|
vec3 posCam = vec3(2.5,2.5,2.5);//vec3(-3.*sin(Time*.15),.6*cos(Time*.15),3.*cos(Time*.15));
|
||||||
|
vec3 posCam = vec3(-3.*sin(MousePos.x/400)*(1-abs(atan(MousePos.y/500))),2*atan(MousePos.y/300),3.*cos(MousePos.x/400)*(1-abs(atan(MousePos.y/500))));
|
||||||
|
|
||||||
vec3 ez = normalize(lookingAt-posCam);////base orthonormée
|
vec3 ez = 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