prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 355 forks source link

Add rotation matrix to camera ViewMatrix3D #755

Closed conlanpatrek closed 1 year ago

conlanpatrek commented 1 year ago

Addresses #754

Was missing the rotation part.

If you are amenable, I'd also like to make ViewMatrix3d and ProjectionMatrix3d virtual, to support other types of 3d cameras.

For example, I've currently got a camera subclass that is running an orthographic projection.

LMK your opinion and I will either add to this pr or open a new one.

prime31 commented 1 year ago

Yeah, by all means make them virtual! Anything that gives more flexibility is fine by me.

conlanpatrek commented 1 year ago

Updated