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>2008-02-19 19:16:16 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-19 19:16:16 +0300
commit6ea0adb4629d8122cf9ab8ea36b737d08cb52bff (patch)
treef036ee62c5cf52b1ecb28d34c7bba69b26504dbd /source/blender/src
parent4100861f24670eab24559f704fb189a9cadfe974 (diff)
Added an option to bake AO normalized, without material settings taken
into account. The normalized result can often be easier to integrate into different materials, e.g. for games.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/buttons_scene.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/buttons_scene.c b/source/blender/src/buttons_scene.c
index 1290236a4ff..055674097b0 100644
--- a/source/blender/src/buttons_scene.c
+++ b/source/blender/src/buttons_scene.c
@@ -2082,6 +2082,8 @@ static void render_panel_bake(void)
if(G.scene->r.bake_mode == RE_BAKE_NORMALS)
uiDefButS(block, MENU, B_DIFF, "Normal Space %t|Camera %x0|World %x1|Object %x2|Tangent %x3",
10,70,190,20, &G.scene->r.bake_normal_space, 0, 0, 0, 0, "Choose normal space for baking");
+ else if(G.scene->r.bake_mode == RE_BAKE_AO)
+ uiDefButBitS(block, TOG, R_BAKE_NORMALIZE_AO, B_DIFF, "Normalized", 10,70,190,20, &G.scene->r.bake_flag, 0.0, 0, 0, 0, "Bake ambient occlusion normalized, without taking into acount material settings");
#if 0
uiBlockBeginAlign(block);