diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2019-04-23 06:20:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-23 06:20:13 +0300 |
commit | 5d33f241f0f9330105a511a4450ffd5137850609 (patch) | |
tree | d8ad457c419ab3cc9637e1f7b3869094b513f553 /servers/visual_server.h | |
parent | 01f7166d09662889ae8e3a827ef95c2004ec3e53 (diff) | |
parent | 54b95b6c5ab476707a5ec3a210266716dfbcd3fe (diff) |
Merge pull request #26064 from JFonS/add_frustum_camera_mode
Add FRUSTUM camera mode, allowing tilted frustums
Diffstat (limited to 'servers/visual_server.h')
-rw-r--r-- | servers/visual_server.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual_server.h b/servers/visual_server.h index c98c5b39a9..7693faf42b 100644 --- a/servers/visual_server.h +++ b/servers/visual_server.h @@ -584,6 +584,7 @@ public: virtual RID camera_create() = 0; virtual void camera_set_perspective(RID p_camera, float p_fovy_degrees, float p_z_near, float p_z_far) = 0; virtual void camera_set_orthogonal(RID p_camera, float p_size, float p_z_near, float p_z_far) = 0; + virtual void camera_set_frustum(RID p_camera, float p_size, Vector2 p_offset, float p_z_near, float p_z_far) = 0; virtual void camera_set_transform(RID p_camera, const Transform &p_transform) = 0; virtual void camera_set_cull_mask(RID p_camera, uint32_t p_layers) = 0; virtual void camera_set_environment(RID p_camera, RID p_env) = 0; |