3 <script src=
"../htmlrunner.js"></script>
6 // http://webkit.org/misc/morph.html
8 window
.onload = function(){ startTest("sunspider-3d-morph", '62915fe1');
10 var loops
= 15, nx
, nz
, a
;
14 var PI2nx
= Math
.PI
* 8/nx
;
16 var f30
= -(50 * sin(f
*Math
.PI
*2));
18 for (var i
= 0; i
< nz
; ++i
) {
19 for (var j
= 0; j
< nx
; ++j
) {
20 a
[3*(i
*nx
+j
)+1] = sin((j
-1) * PI2nx
) * -f30
30 test("Mesh Transform", function(){
32 for (var i
=0; i
< nx
*nz
*3; ++i
)
35 for (var i
= 0; i
< loops
; ++i
) {