Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bemmu
on Nov 19, 2013
|
parent
|
context
|
favorite
| on:
Recursive raytracer in 35 lines of JavaScript
Replace first line with this to get rid of jaggies with "supersampling" :)
var w = 1000;c.style.width = '500px';
d55
on Nov 19, 2013
|
next
[–]
Also, increase the last int in line 34 to get deeper reflections.
ggambetta
on Nov 19, 2013
|
prev
|
next
[–]
Wow, awesome! I'll definitely add that :)
tripzilch
on Nov 20, 2013
|
prev
[–]
now
that's
a hack. well done!
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
var w = 1000;c.style.width = '500px';