From e0dfe62d8ccf8cc0c7f7451ce91a30f025375a27 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 19 Feb 2008 11:07:09 +0000 Subject: Bug #8234: sky texture for approximate AO doesn't work, as mentioned in the commit log. Couldn't get this to work well, probably this would work a lot better with the IBL spherical harmonics feature, so I've just disabled the option in the interface for now. --- source/blender/src/buttons_shading.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/src/buttons_shading.c') diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c index d8f50395bba..7945b6bacd3 100644 --- a/source/blender/src/buttons_shading.c +++ b/source/blender/src/buttons_shading.c @@ -2240,8 +2240,9 @@ static void world_panel_amb_occ(World *wrld) X3CLM1, yco-=BUTH, BUTW3, BUTH, &wrld->aocolor, 2.0, (float)WO_AOPLAIN, 0, 0, "Plain diffuse energy (white)"); uiDefButS(block, ROW, B_REDR, "Sky Color", X3CLM2, yco, BUTW3, BUTH, &wrld->aocolor, 2.0, (float)WO_AOSKYCOL, 0, 0, "Use horizon and zenith color for diffuse energy"); - uiDefButS(block, ROW, B_REDR, "Sky Texture", - X3CLM3, yco, BUTW3, BUTH, &wrld->aocolor, 2.0, (float)WO_AOSKYTEX, 0, 0, "Does full Sky texture render for diffuse energy"); + if(wrld->ao_gather_method == WO_AOGATHER_RAYTRACE) + uiDefButS(block, ROW, B_REDR, "Sky Texture", + X3CLM3, yco, BUTW3, BUTH, &wrld->aocolor, 2.0, (float)WO_AOSKYTEX, 0, 0, "Does full Sky texture render for diffuse energy"); uiBlockEndAlign(block); yco -= YSPACE; -- cgit v1.2.3