This commit is contained in:
devZoGok
2021-10-18 19:04:04 +03:00
parent 0c5f39a96f
commit b1da2bb17c
5 changed files with 46 additions and 28 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ namespace vb01{
Vector3 dir=cam->getDirection(),up=cam->getUp(),camPos=cam->getPosition();
mat4 model=translate(mat4(1.),vec3(pos.x,pos.y,pos.z));
//model=rotate(model,38.f,vec3(1,0,0));
model=rotate(model,38.f,vec3(1,0,0));
mat4 view=lookAt(vec3(camPos.x,camPos.y,camPos.z),vec3(camPos.x+dir.x,camPos.y+dir.y,camPos.z+dir.z),vec3(up.x,up.y,up.z));
mat4 proj=perspective(radians(fov),width/height,nearPlane,farPlane);
//proj=ortho(0.f,800.f,0.f,-600.f,nearPlane,farPlane);