Billboard with math
问题 I'm trying to draw an element always facing camera. I've read some articles about billboard in shaders, the problem is that I need to compute rotation out of shaders and with different objects (circles, square, mesh, …). So, I'm trying to compute model's rotation only (not matrix, something similar to Transform.LookAt in Unity engine) but I don't know how to do, here is what I've got: // Camera data mat4 viewMatrix = camera->getMatrix(); vec3 up = {viewMatrix[0][1], viewMatrix[1][1],