AryanpurTech / BlueEngine

Blue Engine is a general-purpose and easy-to-use graphics engine written in rust.
Apache License 2.0
341 stars 16 forks source link

feat: implemented switching between perspective and orthographic projection #45

Closed akowi-sknobloch closed 1 year ago

akowi-sknobloch commented 1 year ago

In reference to my issue #44. I've implemented orthographic projection. For this I've added a Projection enum with options for Perspective and Orthographic. I've moved the fov definition to the Projection::Perspective option as it does not make much sense when using Orthographic.

The Orthographic Option has a zoom value wich basically "scales" the camera. A higher zoom zooms out wich may be a bit counter intuitive.

ElhamAryanpur commented 1 year ago

Oh I'm so sorry, I forgotten about the issue! And thank you for the pull!

Let me test it out and review then I'll merge.

💙

ElhamAryanpur commented 1 year ago

This is very clean, I tested things, found no issues. Only some comments for function needs updating which I'll do before giving a release for it.