diff options
author | Ton Roosendaal <ton@blender.org> | 2003-09-24 01:05:51 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-09-24 01:05:51 +0400 |
commit | d8955d1b33e8a5bfc17fc4a61721ca144702be81 (patch) | |
tree | 1c8ae3856c9eea6f5e1be563632a4788a17d68d1 /source/blender/blenkernel/intern/texture.c | |
parent | 63e7c3e07719a25307f738861fc9bc66268d3bd4 (diff) |
- Recursive environment map render
Multiple environments now can be rendered in one pass. Previously the other objects with environment maps didn't show up in a reflection. Like this:
http://www.blender.org/bf/dep.jpg
By default, Blender renders now this result:
http://www.blender.org/bf/dep0.jpg
For a further 'recursive ray-tracing effect' you can give each EnvMap texture a higher "Depth" value. Here is a result with depth set at '2':
http://www.blender.org/bf/dep2.jpg
Related new options:
- in (F10) DisplayButtons, environment map rendering can be turned on and off.
- in EnvMap texture buttons you can free all environment maps
- Environment map sizes are also reduced with the (F10) 'percentage' option.
Tech note: with this commit the VlakRen struct has on *ob pointer!
Diffstat (limited to 'source/blender/blenkernel/intern/texture.c')
-rw-r--r-- | source/blender/blenkernel/intern/texture.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c index 7bb863d8c37..5f73bc10ef6 100644 --- a/source/blender/blenkernel/intern/texture.c +++ b/source/blender/blenkernel/intern/texture.c @@ -629,10 +629,6 @@ void init_render_texture(Tex *tex) tex->extend= TEX_CLIP; if(tex->env) { - /* temporal solution: layer 21 is to indicate an anvmap object */ - tex->env->notlay |= (1<<20); - if(tex->env->object) tex->env->object->lay |= (1<<20); - if(R.flag & R_RENDERING) { if(tex->env->stype==ENV_ANIM) RE_free_envmapdata(tex->env); } |