diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-05-21 12:17:49 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-05-25 12:35:53 +0200 |
commit | e85459dcd12b6fd683d94f088d65a22c9c1320a4 (patch) | |
tree | 9edb221deedf9e7b38cccd4185baf15f746cac03 /servers/rendering_server.h | |
parent | 1c99b7415fcfd3a9128c7d2ac70f77477fe55c78 (diff) |
Add Cone and Cylinder shapes to FogVolume
This complements the existing Ellipsoid and Box local fog shapes.
This can be used to represent a light cone coming from a SpotLight.
Diffstat (limited to 'servers/rendering_server.h')
-rw-r--r-- | servers/rendering_server.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/rendering_server.h b/servers/rendering_server.h index d622571a47..1ac48053d8 100644 --- a/servers/rendering_server.h +++ b/servers/rendering_server.h @@ -724,8 +724,11 @@ public: enum FogVolumeShape { FOG_VOLUME_SHAPE_ELLIPSOID, + FOG_VOLUME_SHAPE_CONE, + FOG_VOLUME_SHAPE_CYLINDER, FOG_VOLUME_SHAPE_BOX, FOG_VOLUME_SHAPE_WORLD, + FOG_VOLUME_SHAPE_MAX, }; virtual void fog_volume_set_shape(RID p_fog_volume, FogVolumeShape p_shape) = 0; |