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

Commit 9e6e010

Browse files
committed
raytracer.ts: calling rayTracer.render using canvas width and height
1 parent 9da532c commit 9e6e010

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)