circuithub / morpheus

Browser side Constructive Solid Geometry.
MIT License
13 stars 1 forks source link

Use ray distance to compute error threshold for ray marching #5

Open rehno-lindeque opened 12 years ago

rehno-lindeque commented 12 years ago

The error threshold in determining a hit should be calculated relative to the pixel error on screen. Thus the threshold needs to be linear in distance and related to the camera field of view