[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37655] trunk/blender/source/blender/gpu/ intern/gpu_material.c: Fix #27703: reflection texture coordinates + nodes not working right in GLSL.
Brecht Van Lommel
brechtvanlommel at pandora.be
Mon Jun 20 11:08:41 CEST 2011
Revision: 37655
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37655
Author: blendix
Date: 2011-06-20 09:08:41 +0000 (Mon, 20 Jun 2011)
Log Message:
-----------
Fix #27703: reflection texture coordinates + nodes not working right in GLSL.
Modified Paths:
--------------
trunk/blender/source/blender/gpu/intern/gpu_material.c
Modified: trunk/blender/source/blender/gpu/intern/gpu_material.c
===================================================================
--- trunk/blender/source/blender/gpu/intern/gpu_material.c 2011-06-20 04:09:33 UTC (rev 37654)
+++ trunk/blender/source/blender/gpu/intern/gpu_material.c 2011-06-20 09:08:41 UTC (rev 37655)
@@ -942,8 +942,10 @@
texco= texco_object;
else if(mtex->texco==TEXCO_GLOB)
texco= texco_global;
- else if(mtex->texco==TEXCO_REFL)
+ else if(mtex->texco==TEXCO_REFL) {
+ GPU_link(mat, "texco_refl", shi->vn, shi->view, &shi->ref);
texco= shi->ref;
+ }
else if(mtex->texco==TEXCO_UV) {
if(1) { //!(texco_uv && strcmp(mtex->uvname, lastuvname) == 0)) {
GPU_link(mat, "texco_uv", GPU_attribute(CD_MTFACE, mtex->uvname), &texco_uv);
@@ -1173,7 +1175,6 @@
}
GPU_link(mat, "vec_math_negate", shi->vn, &orn);
- GPU_link(mat, "texco_refl", shi->vn, shi->view, &shi->ref);
}
if((mtex->mapto & MAP_VARS)) {
More information about the Bf-blender-cvs
mailing list