This commit is contained in:
monoid 2021-10-31 17:36:10 +09:00
parent 163331eea4
commit 52afda214e

View File

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