소스 검색

Unflipped WebGL video material demo.

alteredq 13 년 전
부모
커밋
0c0bc54d60
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;