SQC-15_online #1
| @@ -93,18 +93,18 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr | ||||
| 	Matrix4 mat4 = tran.GetMatrix(); | ||||
| 	 | ||||
| 	Vector3f DiffCam = GetPosition() - camera.GetPosition(); | ||||
| 	Vector3f UpCam = Vector3f(mat4.Get12(), mat4.Get22(), mat4.Get32()); | ||||
| 	Vector3f UpCam = Vector3f(0.f, 1.f, 0.f); | ||||
|  | ||||
| 	Vector3f CrossA = DiffCam.Cross(UpCam); | ||||
| 	Vector3f CrossB = DiffCam.Cross(CrossA); | ||||
| 	CrossA.Normalize(); | ||||
| 	CrossB.Normalize(); | ||||
|  | ||||
| 	Vector3f playerPosition = GetPosition() + Vector3f(0.f, 0.f, 0.f); | ||||
| 	Vector3f playerPosition = GetPosition() + Vector3f(0.f, -.75f, 0.f); | ||||
|  | ||||
|  | ||||
| 	Vector3f v1 = (playerPosition + CrossA * 0.5 * width + CrossB * 0.5 * height); | ||||
| 	Vector3f v2 = (playerPosition - CrossA * 0.5 * width + CrossB * 0.5 * height); | ||||
| 	Vector3f v2 = (playerPosition + CrossA * 0.5 * width + CrossB * 0.5 * height); | ||||
| 	Vector3f v1 = (playerPosition - CrossA * 0.5 * width + CrossB * 0.5 * height); | ||||
| 	Vector3f v3 = (playerPosition + CrossA * 0.5 * width - CrossB * 0.5 * height); | ||||
| 	Vector3f v4 = (playerPosition - CrossA * 0.5 * width - CrossB * 0.5 * height); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user