[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53319] trunk/blender/source/blender/ makesrna/intern/rna_lamp.c: BGE: Committing SolarLune' s patch to allow a minimum shadow buffer size of 128 (down from 512).
Mitchell Stokes
mogurijin at gmail.com
Tue Dec 25 07:31:48 CET 2012
Revision: 53319
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53319
Author: moguri
Date: 2012-12-25 06:31:42 +0000 (Tue, 25 Dec 2012)
Log Message:
-----------
BGE: Committing SolarLune's patch to allow a minimum shadow buffer size of 128 (down from 512).
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_lamp.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_lamp.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_lamp.c 2012-12-25 06:20:50 UTC (rev 53318)
+++ trunk/blender/source/blender/makesrna/intern/rna_lamp.c 2012-12-25 06:31:42 UTC (rev 53319)
@@ -54,7 +54,7 @@
{
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 @@
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");
More information about the Bf-blender-cvs
mailing list