summaryrefslogtreecommitdiffstats
path: root/scene/3d/lightmap_gi.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/lightmap_gi.h')
-rw-r--r--scene/3d/lightmap_gi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/3d/lightmap_gi.h b/scene/3d/lightmap_gi.h
index fec0075693..765e4a731d 100644
--- a/scene/3d/lightmap_gi.h
+++ b/scene/3d/lightmap_gi.h
@@ -142,6 +142,7 @@ public:
BAKE_ERROR_CANT_CREATE_IMAGE,
BAKE_ERROR_USER_ABORTED,
BAKE_ERROR_TEXTURE_SIZE_TOO_SMALL,
+ BAKE_ERROR_LIGHTMAP_TOO_SMALL,
};
enum EnvironmentMode {
@@ -158,6 +159,7 @@ private:
int bounces = 3;
float bounce_indirect_energy = 1.0;
float bias = 0.0005;
+ float texel_scale = 1.0;
int max_texture_size = 16384;
bool interior = false;
EnvironmentMode environment_mode = ENVIRONMENT_MODE_SCENE;
@@ -284,6 +286,9 @@ public:
void set_bias(float p_bias);
float get_bias() const;
+ void set_texel_scale(float p_multiplier);
+ float get_texel_scale() const;
+
void set_max_texture_size(int p_size);
int get_max_texture_size() const;