Skip to content
Snippets Groups Projects
Commit ff9574ca authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

tilted top broken

parent 7abc578e
No related branches found
No related tags found
No related merge requests found
......@@ -408,6 +408,11 @@ function map_worker() {
offset += 4
offset += 2
//
// check normal if needs to be drawn
//
if (((x1-x0)*(y1-y2)-(x1-x2)*(y1-y0)) >= 0)
continue
//
// quantize image coordinates
//
x0 = Math.floor((w-1)*(x0-xmin)/(xmax-xmin))
......@@ -417,11 +422,6 @@ function map_worker() {
y1 = Math.floor((h-1)*(y1-ymin)/(ymax-ymin))
y2 = Math.floor((h-1)*(y2-ymin)/(ymax-ymin))
//
// check normal if needs to be drawn
//
if (((x1-x0)*(y1-y2)-(x1-x2)*(y1-y0)) >= 0)
continue
//
// sort projection order
//
if (y1 > y2) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment