mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
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.
This commit is contained in:
parent
1c99b7415f
commit
e85459dcd1
8 changed files with 49 additions and 12 deletions
|
@ -2140,8 +2140,11 @@ void RenderingServer::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("fog_volume_set_material", "fog_volume", "material"), &RenderingServer::fog_volume_set_material);
|
||||
|
||||
BIND_ENUM_CONSTANT(FOG_VOLUME_SHAPE_ELLIPSOID);
|
||||
BIND_ENUM_CONSTANT(FOG_VOLUME_SHAPE_CONE);
|
||||
BIND_ENUM_CONSTANT(FOG_VOLUME_SHAPE_CYLINDER);
|
||||
BIND_ENUM_CONSTANT(FOG_VOLUME_SHAPE_BOX);
|
||||
BIND_ENUM_CONSTANT(FOG_VOLUME_SHAPE_WORLD);
|
||||
BIND_ENUM_CONSTANT(FOG_VOLUME_SHAPE_MAX);
|
||||
|
||||
/* VISIBILITY NOTIFIER */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue