Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Unflipped WebGL video material demo.

  • Loading branch information...
commit 0c0bc54d60e9f0bb8e4b489fe707dc44856e8615 1 parent 8835e7a
@alteredq alteredq authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/webgl_materials_video.html
View
4 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;
Please sign in to comment.
Something went wrong with that request. Please try again.