Skip to content
Snippets Groups Projects
Commit 6bbb4473 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Correct triangle orientation

parent c066f4af
No related branches found
No related tags found
1 merge request!151Implements #216 triangle renderer
......@@ -43,7 +43,7 @@ __device__ inline float length2(int dx, int dy) { return dx*dx + dy*dy; }
for (int sx=0; sx < s[1].x; ++sx) {
for (int sy=0; sy < s[2].y; ++sy) {
if (sx < sy) continue;
if (sx > s[2].y-sy) continue;
if (sx+s[0].x >= params.camera.width || sy+s[0].y >= params.camera.height) continue;
float dist1 = length2(sx,sy);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment