1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00

Expose RenderingServer GI half resolution setter method

This is required for projects to be able to change the
GI half-resolution setting at run-time.
This commit is contained in:
Hugo Locurcio
2021-12-22 19:38:48 +01:00
parent 650b77340d
commit bf339842a5
3 changed files with 13 additions and 0 deletions

View File

@@ -1999,6 +1999,10 @@ void RenderingServer::_bind_methods() {
BIND_ENUM_CONSTANT(DECAL_FILTER_LINEAR_MIPMAPS);
BIND_ENUM_CONSTANT(DECAL_FILTER_LINEAR_MIPMAPS_ANISOTROPIC);
/* GI API (affects VoxelGI and SDFGI) */
ClassDB::bind_method(D_METHOD("gi_set_use_half_resolution", "half_resolution"), &RenderingServer::gi_set_use_half_resolution);
/* VOXEL GI API */
ClassDB::bind_method(D_METHOD("voxel_gi_create"), &RenderingServer::voxel_gi_create);