BGE: Committing SolarLune's patch to allow a minimum shadow buffer size of 128 (down from 512).
This commit is contained in:
@@ -54,7 +54,7 @@ static void rna_Lamp_buffer_size_set(PointerRNA *ptr, int value)
|
||||
{
|
||||
Lamp *la = (Lamp *)ptr->data;
|
||||
|
||||
CLAMP(value, 512, 10240);
|
||||
CLAMP(value, 128, 10240);
|
||||
la->bufsize = value;
|
||||
la->bufsize &= (~15); /* round to multiple of 16 */
|
||||
}
|
||||
@@ -540,7 +540,7 @@ static void rna_def_lamp_shadow(StructRNA *srna, int spot, int area)
|
||||
|
||||
prop = RNA_def_property(srna, "shadow_buffer_size", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "bufsize");
|
||||
RNA_def_property_range(prop, 512, 10240);
|
||||
RNA_def_property_range(prop, 128, 10240);
|
||||
RNA_def_property_ui_text(prop, "Shadow Buffer Size",
|
||||
"Resolution of the shadow buffer, higher values give crisper shadows "
|
||||
"but use more memory");
|
||||
|
||||
Reference in New Issue
Block a user