提交 0833ca52 编写于 作者: F Felix Turner

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.
上级 6f6f7bf5
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册