Fix #22964: incorrect derivatives for global texture coordinates, showed up as
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 28 Jul 2010 11:10:56 +0000 (11:10 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 28 Jul 2010 11:10:56 +0000 (11:10 +0000)
artifacts in bump mapping.

source/blender/render/intern/source/texture.c

index c8a15372e2141bf6b522a49c9b4af690f3c8f969..658748bdaebab3dd2e883e55cab5d0c8138ddb57 100644 (file)
@@ -1731,7 +1731,7 @@ void do_material_tex(ShadeInput *shi)
                                co= shi->tang; dx= shi->dxno; dy= shi->dyno;
                        }
                        else if(mtex->texco==TEXCO_GLOB) {
-                               co= shi->gl; dx= shi->dxco; dy= shi->dyco;
+                               co= shi->gl; dx= shi->dxgl; dy= shi->dygl;
                        }
                        else if(mtex->texco==TEXCO_UV) {
                                if(mtex->texflag & MTEX_DUPLI_MAPTO) {