a bug with GX_SetTexCoordGen
Posted: Wed Feb 11, 2009 1:33 pm
I was playing around with a blur effect by rendering a texture many times with a slight offset using different texture matrixes but I couldn't get the matrix to work for more than one texture channel. Eventually I looked in gx.c to see if the problem was in there, and I found something odd.
In GX_SetTexCoordGen2 in gx.c the matrix is set to different bits depending on the tgen_src, but it should be depending on the texcoord number instead, so you can use the same TG_TEX-sets with different matrices. I tried changing the switch statement and recompile the lib and everything works fine now.
maybe you can fix it to the next release of libogc?
In GX_SetTexCoordGen2 in gx.c the matrix is set to different bits depending on the tgen_src, but it should be depending on the texcoord number instead, so you can use the same TG_TEX-sets with different matrices. I tried changing the switch statement and recompile the lib and everything works fine now.
maybe you can fix it to the next release of libogc?