Skip to content

Commit

Permalink
Remove cruft from AO routine.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Rideout committed Aug 17, 2015
1 parent 472f24e commit b3cb704
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lighting.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,6 @@ heman_image* heman_lighting_compute_occlusion(heman_image* heightmap)
horizon_scan(heightmap, result, startpts, dx, dy);
}

// Sanity check. We'll remove this after the implementation is done.
for (int i = 0; i < width * height; i++) {
result->data[i] = 1.0f - result->data[i];
assert(result->data[i] >= 0.0 && result->data[i] <= 1.0f);
}

free(startpts);
return result;
}

0 comments on commit b3cb704

Please sign in to comment.