Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 0ef446c

Browse files
Merge pull request #104 from isghe/raytracer_render_width_height
raytracer.ts: calling rayTracer.render using canvas width and height
2 parents 9da532c + 9e6e010 commit 0ef446c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raytracer/raytracer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function exec() {
271271
document.body.appendChild(canv);
272272
var ctx = canv.getContext("2d");
273273
var rayTracer = new RayTracer();
274-
return rayTracer.render(defaultScene(), ctx, 256, 256);
274+
return rayTracer.render(defaultScene(), ctx, canv.width, canv.height);
275275
}
276276

277277
exec();

0 commit comments

Comments
 (0)