tzachshabtay / MonoAGS

AGS (Adventure Game Studio) reimagined in Mono
https://tzachshabtay.github.io/MonoAGS/
Artistic License 2.0
27 stars 8 forks source link

Camera- depth clipping #146

Closed tzachshabtay closed 6 years ago

tzachshabtay commented 7 years ago

Support near & far clipping for the objects: Add a "Z" property to the camera (and a "frustum" size property, with an option to disable/enable near/far clipping) which will be compared against the object's Z property (or the rendering layer's Z property) and hide the object if it's not inside the viewing frustum (https://en.wikipedia.org/wiki/Viewing_frustum), i.e if the object is too close or too far from the camera.