Revision: 23829
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23829
Author: blendix
Date: 2009-10-14 13:17:59 +0200 (Wed, 14 Oct 2009)
Log Message:
-----------
Bugfix: new bump mapping with UV coordinates wasn't working
correct, my mistake in merging the patch.
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/texture.c
Modified: trunk/blender/source/blender/render/intern/source/texture.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/texture.c 2009-10-14
10:33:27 UTC (rev 23828)
+++ trunk/blender/source/blender/render/intern/source/texture.c 2009-10-14
11:17:59 UTC (rev 23829)
@@ -1736,6 +1736,16 @@
vlr_set_uv_indices(shi->vlr, &j1, &j2, &j3);
+ // compute ortho basis
around normal
+ if(!nunvdone) {
+ // render
normal is negated
+ nn[0] =
-shi->vn[0];
+ nn[1] =
-shi->vn[1];
+ nn[2] =
-shi->vn[2];
+
VecOrthoBasisf(nn, nu, nv);
+ nunvdone= 1;
+ }
+
if (tf) {
float *uv1 =
tf->uv[j1], *uv2 = tf->uv[j2], *uv3 = tf->uv[j3];
const float
an[3] = {fabsf(nn[0]), fabsf(nn[1]), fabsf(nn[2])};
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs