| OLD | NEW |
| 1 // The ray tracer code in this file is written by Adam Burmister. It | 1 // The ray tracer code in this file is written by Adam Burmister. It |
| 2 // is available in its original form from: | 2 // is available in its original form from: |
| 3 // | 3 // |
| 4 // http://labs.flog.nz.co/raytracer/ | 4 // http://labs.flog.nz.co/raytracer/ |
| 5 // | 5 // |
| 6 // It has been modified slightly by Google to work as a standalone | 6 // It has been modified slightly by Google to work as a standalone |
| 7 // benchmark, but the all the computational code remains | 7 // benchmark, but the all the computational code remains |
| 8 // untouched. This file also contains a copy of parts of the Prototype | 8 // untouched. This file also contains a copy of parts of the Prototype |
| 9 // JavaScript framework which is used by the ray tracer. | 9 // JavaScript framework which is used by the ray tracer. |
| 10 | 10 |
| 11 var RayTrace = new BenchmarkSuite('RayTrace', 932666, [ | 11 var RayTrace = new BenchmarkSuite('RayTrace', 533115, [ |
| 12 new Benchmark('RayTrace', renderScene) | 12 new Benchmark('RayTrace', renderScene) |
| 13 ]); | 13 ]); |
| 14 | 14 |
| 15 | 15 |
| 16 // Variable used to hold a number that can be used to verify that | 16 // Variable used to hold a number that can be used to verify that |
| 17 // the scene was ray traced correctly. | 17 // the scene was ray traced correctly. |
| 18 var checkNumber; | 18 var checkNumber; |
| 19 | 19 |
| 20 | 20 |
| 21 // ------------------------------------------------------------------------ | 21 // ------------------------------------------------------------------------ |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 895 "renderDiffuse": renderDiffuse, | 895 "renderDiffuse": renderDiffuse, |
| 896 "renderHighlights": renderHighlights, | 896 "renderHighlights": renderHighlights, |
| 897 "renderShadows": renderShadows, | 897 "renderShadows": renderShadows, |
| 898 "renderReflections": renderReflections, | 898 "renderReflections": renderReflections, |
| 899 "rayDepth": rayDepth | 899 "rayDepth": rayDepth |
| 900 } | 900 } |
| 901 ); | 901 ); |
| 902 | 902 |
| 903 raytracer.renderScene(scene, null, 0); | 903 raytracer.renderScene(scene, null, 0); |
| 904 } | 904 } |
| OLD | NEW |