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>2005-11-27 15:19:12 +0300
committerTon Roosendaal <ton@blender.org>2005-11-27 15:19:12 +0300
commita494a76e9e5ca6b1374769a95fe55558ac73b847 (patch)
tree22f1ff415e95176d7b961009f3a857546a6c4872 /source/blender/blenloader/intern/readfile.c
parentf08200baa9a3306fc4662313bd5c99ecdedf84cf (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.c5
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;
+ }
}
}