Bläddra i källkod

Fix inverted rows and realign destination labels

Fix rows on the blend table being incorrectly inverted on webgl_materials_blending_custom.html example

You can verify the rows are currently inverted by hardcoding blendSrc and blendDist 
(insert these lines at line 231):
material.blendSrc = THREE["ZeroFactor"];
material.blendDst = THREE[ "SrcColorFactor" ];

 and compare the result against what the table says this should look like.
Felix Turner 10 år sedan
förälder
incheckning
0833ca528e
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      examples/webgl_materials_blending_custom.html

+ 2 - 2
examples/webgl_materials_blending_custom.html

@@ -233,7 +233,7 @@
 						var y = ( i - dst.length / 2 ) * 110 + 50;
 
 						var mesh = new THREE.Mesh( geo1, material );
-						mesh.position.set( x, y, z );
+						mesh.position.set( x, -y, z );
 						mesh.matrixAutoUpdate = false;
 						mesh.updateMatrix();
 						scene.add( mesh );
@@ -269,7 +269,7 @@
 					var y = ( i - dst.length / 2 ) * 110 + 165;
 
 					var mesh = new THREE.Mesh( geo2, generateLabelMaterial( blendDst.replace( "Factor", "" ), "rgba( 150, 0, 0, 1 )" ) );
-					mesh.position.set( x, - (y - 70), z );
+					mesh.position.set( x, - (y - 120), z );
 					mesh.matrixAutoUpdate = false;
 					mesh.updateMatrix();
 					scene.add( mesh );