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:
authorTon Roosendaal <ton@blender.org>2004-01-06 23:25:50 +0300
committerTon Roosendaal <ton@blender.org>2004-01-06 23:25:50 +0300
commite4d0d9cc449b87e9f920b55c1281c3a79a324345 (patch)
tree8a14a1ee08924bdec05f5a8b68c8e85e0462c66f /source/blender/blenkernel/intern/world.c
parentbb6a4cf63fb553dce6e6b33887bd8e922fb1407d (diff)
- decided to use a new variable for the new exposure option, instead of
re-using old one. New one = 'exp'. - at first I used the old 'exposure' value, and just mapped it to 0. this causes a problem with upward compatibility, old blenders then render a black picture. is too confusing! - warning; exposure values saved with commit of last week will get lost.
Diffstat (limited to 'source/blender/blenkernel/intern/world.c')
-rw-r--r--source/blender/blenkernel/intern/world.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/world.c b/source/blender/blenkernel/intern/world.c
index ea4f9bd790b..a5872c0abe9 100644
--- a/source/blender/blenkernel/intern/world.c
+++ b/source/blender/blenkernel/intern/world.c
@@ -90,8 +90,8 @@ World *add_world(char *name)
wrld->starsize= 2.0f;
wrld->gravity= 9.8f;
- wrld->exposure= 0.0f;
- wrld->range= 1.0f;
+ wrld->exp= 0.0f;
+ wrld->exposure=wrld->range= 1.0f;
return wrld;
}
@@ -201,10 +201,10 @@ void init_render_world()
}
else {
memset(&R.wrld, 0, sizeof(World));
- R.wrld.exposure= 0.0;
+ R.wrld.exp= 0.0;
R.wrld.range= 1.0;
}
- R.wrld.linfac= 1.0 + pow((2.0*R.wrld.exposure + 0.5), -10);
+ R.wrld.linfac= 1.0 + pow((2.0*R.wrld.exp + 0.5), -10);
R.wrld.logfac= log( (R.wrld.linfac-1.0)/R.wrld.linfac )/R.wrld.range;
}