Ray tracing source code
2016-08-23
2 0 0
no vote
Other
Earn points
Based on the HTML5 canvas, using ray tracing method to render the scene.
Defined spheres, planes, cubes, cylinders and other objects.
Defines the object's material, diffuse reflectance, specular reflection coefficient and reflectance.
You can define the color of the light in that direction.
You can define multiple light sources.
Define observation position, viewing direction, and angle.
Track light depth can be defined.
Effect of
Realization of reflection, shadows, and other effects, you can get more photorealistic images.
Implementation
Source:Ra
javascript
源代码
光线
追踪
Related Source Codes
WeChat mini program development
0
0
no vote
Image cropping and compression processing on mobil
0
0
no vote
Classic Interview Questions for Digital City Front
0
0
no vote
3D building large screen display
0
0
no vote
six million six hundred and sixty-six thousand six
0
0
no vote
No comment