forked from bartvdbraak/blender
accidentally left scaling code commented out when testing.
This commit is contained in:
parent
d694115ac4
commit
311f5a8d78
@ -1607,7 +1607,6 @@ static void texco_mapping(ShadeInput* shi, Tex* tex, MTex* mtex, float* co, floa
|
||||
do_2d_mapping(mtex, texvec, shi->vlr, shi->facenor, dxt, dyt);
|
||||
|
||||
// translate and scale
|
||||
/*
|
||||
texvec[0] = mtex->size[0]*(texvec[0] - 0.5f) + mtex->ofs[0] + 0.5f;
|
||||
texvec[1] = mtex->size[1]*(texvec[1] - 0.5f) + mtex->ofs[1] + 0.5f;
|
||||
if (shi->osatex) {
|
||||
@ -1616,7 +1615,6 @@ static void texco_mapping(ShadeInput* shi, Tex* tex, MTex* mtex, float* co, floa
|
||||
dyt[0] = mtex->size[0]*dyt[0];
|
||||
dyt[1] = mtex->size[1]*dyt[1];
|
||||
}
|
||||
*/
|
||||
|
||||
/* problem: repeat-mirror is not a 'repeat' but 'extend' in imagetexture.c */
|
||||
// TXF: bug was here, only modify texvec when repeat mode set, old code affected other modes too.
|
||||
|
Loading…
Reference in New Issue
Block a user