This commit is contained in:
monoid 2021-10-31 17:36:10 +09:00
parent 163331eea4
commit 52afda214e
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ export class Camera {
}
get right(): vec3 {
const ret = vec3.create();
vec3.cross(ret, this.up, this.forward)
return vec3.cross(vec3.create(),this.forward,[0,1,0]);;
vec3.cross(ret, this.forward, this.up);
return ret;
}
};