diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-27 15:19:12 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-27 15:19:12 +0300 |
commit | a494a76e9e5ca6b1374769a95fe55558ac73b847 (patch) | |
tree | 22f1ff415e95176d7b961009f3a857546a6c4872 /source/blender/blenloader/intern/readfile.c | |
parent | f08200baa9a3306fc4662313bd5c99ecdedf84cf (diff) |
Finishing touch for hair strand shadows;
- raytracing code now uses cylinder-line intersect for strands. It used
to intersect with the screen-aligned strand quads, giving too many
misses for tracing.
Note; mirror for hair is still not well supported!
- added in Materials a choice for whether a material is Traceable for
raytracing or whether it is part of Shadow buffers. This way you can
exclude hair strands from raytracing, but still get shadowbuffers for it.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index e22df9d66d9..1fb00163644 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5077,6 +5077,11 @@ static void do_versions(FileData *fd, Library *lib, Main *main) ma->strand_sta= ma->strand_end= 1.0f; ma->mode |= MA_TANGENT_STR; } + /* remove this test before 2.40 too! pad is set to denote check was done */ + if(ma->pad==0) { + if(ma->mode & MA_TRACEBLE) ma->mode |= MA_SHADBUF; + ma->pad= 1; + } } } |