2 <!-- MOZ_INSERT_CONTENT_HOOK -->
3 <script src = runner.js
></script>
5 var onlyName
= 'Mesh Transform', onlyNum
= 128;
9 // http://webkit.org/misc/morph.html
11 startTest("real-morph");
13 var loops
= 60, nx
, nz
;
16 var PI2nx
= Math
.PI
* 8/nx
;
18 var f30
= -(50 * sin(f
*Math
.PI
*2));
20 for (var i
= 0; i
< nz
; ++i
) {
21 for (var j
= 0; j
< nx
; ++j
) {
22 a
[3*(i
*nx
+j
)+1] = sin((j
-1) * PI2nx
) * -f30
29 for (var i
=0; i
< nx
*nz
*3; ++i
)
32 for ( var size
= 16; size
<= 128; size
*= 2 ) (function(size
){
34 test("Mesh Transform", size
, function(){
35 for (var i
= 0; i
< loops
; ++i
) {
44 <body onload=
"thisTest()"></body></html>