Commit fceab18b authored by Andrey Filippov's avatar Andrey Filippov

Added bicubic, fixed map inversion

parent 8e12622f
...@@ -649,7 +649,7 @@ public class Render3D { ...@@ -649,7 +649,7 @@ public class Render3D {
(1.0 - fy) * ( fx) * texture[chn][indx10] + (1.0 - fy) * ( fx) * texture[chn][indx10] +
( fy) * (1.0 - fx) * texture[chn][indx01] + ( fy) * (1.0 - fx) * texture[chn][indx01] +
( fy) * ( fx) * texture[chn][indx11]; ( fy) * ( fx) * texture[chn][indx11];
if (pbsif[tri_index[indx][0]][chn].isValidPoint(px, py)) { // tghen overwrite with bicubic if (pbsif[tri_index[indx][0]][chn].isValidPoint(px, py)) { // then overwrite with bicubic
pix_val[chn] = pbsif[tri_index[indx][0]][chn].value(px,py); pix_val[chn] = pbsif[tri_index[indx][0]][chn].value(px,py);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment