1652
1652
// rotate to global coords
1653
1653
if(mtex->texco==TEXCO_ORCO || mtex->texco==TEXCO_UV) {
1654
1654
if(shi->vlr && shi->vlr->ob) {
1656
1656
// can be optimized... (ton)
1657
1657
Mat4Mul3Vecfl(shi->vlr->ob->obmat, texres.nor);
1658
1658
Mat4Mul3Vecfl(R.viewmat, texres.nor);
1660
1660
VecMulf(texres.nor, len);