[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12376] trunk/blender/source/blender/ render/intern/source/rayshade.c: Oops, left in some unrelated testing stuff by mistake.
Matt Ebb
matt at mke3.net
Wed Oct 24 15:09:02 CEST 2007
Revision: 12376
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12376
Author: broken
Date: 2007-10-24 15:09:02 +0200 (Wed, 24 Oct 2007)
Log Message:
-----------
Oops, left in some unrelated testing stuff by mistake.
By the way, should have mentioned in the previous commit, the 'adapt vec' requires a Vec pass enabled to work, and there was also some shuffling in the ao panel.
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/rayshade.c
Modified: trunk/blender/source/blender/render/intern/source/rayshade.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/rayshade.c 2007-10-24 12:42:08 UTC (rev 12375)
+++ trunk/blender/source/blender/render/intern/source/rayshade.c 2007-10-24 13:09:02 UTC (rev 12376)
@@ -1495,13 +1495,9 @@
while (samples < max_samples) {
- if (G.rt==0) {
- /* sampling, returns quasi-random vector in unit hemisphere */
- QMC_sampleHemi(samp3d, qsa, shi->thread, samples);
- } else {
- /* sampling, returns quasi-random vector in unit hemisphere */
- QMC_sampleHemiCosine(samp3d, qsa, shi->thread, samples);
- }
+ /* sampling, returns quasi-random vector in unit hemisphere */
+ QMC_sampleHemi(samp3d, qsa, shi->thread, samples);
+
dir[0] = (samp3d[0]*up[0] + samp3d[1]*side[0] + samp3d[2]*nrm[0]);
dir[1] = (samp3d[0]*up[1] + samp3d[1]*side[1] + samp3d[2]*nrm[1]);
dir[2] = (samp3d[0]*up[2] + samp3d[1]*side[2] + samp3d[2]*nrm[2]);
More information about the Bf-blender-cvs
mailing list