diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2007-05-08 14:15:51 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2007-05-08 14:15:51 +0400 |
commit | 15e79ef4c834ea31b14ef72d522fb0a5d00dc76e (patch) | |
tree | f1718381a9b83a7cb3edbb19657d74e162344862 /source/blender/src/buttons_shading.c | |
parent | ad30c0b48b2d8f1adc32bcccc3f27ef1ef76a42d (diff) |
SSS fixes:
- Radius R, G, B sliders had too small number increase on clicking.
- Preview render now renders with higher SSS error setting to speed it up a
bit.
- bug #6664: 3d preview render had artifacts. re->viewdx/dy wasn't set then,
which is needed to estimate the area of each point. Have set this now, not
in the nicest way, there is some bit duplicated code, but I don't want to
refactor existing code with the chance of breaking it at this point.
- bug #6665: grid like artifacts with parts rendering. The two extra pixels
around parts used for filtering were used as well, leading to double points.
Diffstat (limited to 'source/blender/src/buttons_shading.c')
-rw-r--r-- | source/blender/src/buttons_shading.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c index 35277030857..0d1a783ddea 100644 --- a/source/blender/src/buttons_shading.c +++ b/source/blender/src/buttons_shading.c @@ -3326,15 +3326,15 @@ static void material_panel_sss(Material *ma) uiDefButF(block, NUM, B_MATPRV, "Scale:", 10,150,145,20, &ma->sss_scale, 0.001, 1000, 1, 3, "Object scale"); bt=uiDefButF(block, NUM, B_MATPRV, "Radius R", 10,130,145,20, - &ma->sss_radius[0], 0.00001, 10000, 0, 0, + &ma->sss_radius[0], 0.0001, 10000, 1, 3, "Mean red scattering path length"); uiButSetFunc(bt, material_sss_custom_set_cb, ma, NULL); bt=uiDefButF(block, NUM, B_MATPRV, "Radius G", 10,110,145,20, - &ma->sss_radius[1], 0.00001, 10000, 0, 0, + &ma->sss_radius[1], 0.0001, 10000, 1, 3, "Mean green scattering path length"); uiButSetFunc(bt, material_sss_custom_set_cb, ma, NULL); bt=uiDefButF(block, NUM, B_MATPRV, "Radius B", 10,90,145,20, - &ma->sss_radius[2], 0.00001, 10000, 0, 0, + &ma->sss_radius[2], 0.0001, 10000, 1, 3, "Mean blue scattering path length"); uiButSetFunc(bt, material_sss_custom_set_cb, ma, NULL); uiBlockEndAlign(block); |