Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-12-02 14:54:48 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-12-02 14:54:48 +0300
commit927b976a88a836c94651b07210f0d635d33500ef (patch)
tree98eee20532c5ea9368e79fc3c7792f52b4307aae /source/blender/makesrna/intern
parent03a9740c16861511fec9908fa0afe4d42620773d (diff)
AAO Indirect Diffuse
Don't use passes anymore for indirect lighting, people were using this probably thinking it would do bounces, but that's not the intention of this feature, it is to reduce problems with light bleeding. I want to remove this option for AO as well, but will leave it in for now until there is a better alternative. Added bounces option for indirect, could be implemented much better, but perhaps useful for testing now. Existing files need to set this to 1 to get the same results again.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r--source/blender/makesrna/intern/rna_world.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_world.c b/source/blender/makesrna/intern/rna_world.c
index 88992387148..231faffef0f 100644
--- a/source/blender/makesrna/intern/rna_world.c
+++ b/source/blender/makesrna/intern/rna_world.c
@@ -318,6 +318,11 @@ static void rna_def_ambient_occlusion(BlenderRNA *brna)
RNA_def_property_ui_range(prop, 0, 10, 0.1, 3);
RNA_def_property_ui_text(prop, "Indirect", "Use approximate ambient occlusion for indirect diffuse lighting.");
RNA_def_property_update(prop, 0, "rna_World_update");
+
+ prop= RNA_def_property(srna, "indirect_bounces", PROP_INT, PROP_UNSIGNED);
+ RNA_def_property_int_sdna(prop, NULL, "ao_indirect_bounces");
+ RNA_def_property_ui_text(prop, "Bounces", "Number of indirect diffuse light bounces to use for approximate ambient occlusion.");
+ RNA_def_property_update(prop, 0, "rna_World_update");
}
static void rna_def_world_mist(BlenderRNA *brna)