billboards!
This commit is contained in:
@ -28,9 +28,10 @@ Matrix4 camera_look_at(const Camera *const camera) {
|
||||
result.row[3].x = -m_vec_dot(r, camera->pos);
|
||||
result.row[3].y = -m_vec_dot(u, camera->pos);
|
||||
result.row[3].z = m_vec_dot(camera->target, camera->pos);
|
||||
result.row[0].w = result.row[1].w = result.row[2].w = 0.0f;
|
||||
result.row[3].w = 1.0f;
|
||||
|
||||
result.row[0].w = result.row[1].w = result.row[2].w = 0.0f;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user