Browse Source

Unflipped WebGL video material demo.

alteredq 13 years ago
parent
commit
0c0bc54d60
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgl_materials_video.html

+ 2 - 2
examples/webgl_materials_video.html

@@ -144,14 +144,14 @@
 					material = materials[ cube_count ];
 
 					material.hue = i/xgrid;
-					material.saturation = j/ygrid;
+					material.saturation = 1 - j/ygrid;
 
 					material.color.setHSV( material.hue, material.saturation, 1 );
 
 					mesh = new THREE.Mesh( geometry, material );
 
 					mesh.position.x =   ( i - xgrid/2 ) * xsize;
-					mesh.position.y = - ( j - ygrid/2 ) * ysize;
+					mesh.position.y =   ( j - ygrid/2 ) * ysize;
 					mesh.position.z = 0;
 
 					mesh.scale.x = mesh.scale.y = mesh.scale.z = 1;