From bf339842a530e4e21beb395b9b4eea97c9578e0e Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 22 Dec 2021 19:38:48 +0100 Subject: 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. --- servers/rendering_server.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'servers') diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index 23d3bf030f..5bb8d130e7 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -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); -- cgit v1.2.3