Skip to content

Commit

Permalink
webgl_materials_texture_*: Fixed z fight issues on Nexus 5. See mrdoo…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob authored and amakaroff82 committed May 30, 2017
1 parent 413a13b commit ae36298
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/webgl_materials_texture_filters.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@

zscene.add( zmesh );

var meshFrame = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { color: 0x000000, polygonOffset: true, polygonOffsetFactor: 1, polygonOffsetUnits: 5 } ) );
var meshFrame = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { color: 0x000000 } ) );
meshFrame.position.z = - 10.0;
meshFrame.scale.x = 1.1 * image.width / 100;
meshFrame.scale.y = 1.1 * image.height / 100;

zscene.add( meshFrame );

var meshShadow = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.75, transparent: true } ) );
var meshShadow = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.75, transparent: true } ) );
meshShadow.position.y = - 1.1 * image.height/2;
meshShadow.position.z = - 1.1 * image.height/2;
meshShadow.rotation.x = - Math.PI / 2;
Expand Down
4 changes: 2 additions & 2 deletions examples/webgl_materials_texture_manualmipmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@

zscene.add( zmesh );

var meshFrame = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { color: 0x000000, polygonOffset: true, polygonOffsetFactor: 1, polygonOffsetUnits: 5 } ) );
var meshFrame = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { color: 0x000000 } ) );
meshFrame.position.z = - 10.0;
meshFrame.scale.x = 1.1 * image.width / 100;
meshFrame.scale.y = 1.1 * image.height / 100;

zscene.add( meshFrame );

var meshShadow = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.75, transparent: true } ) );
Expand Down

0 comments on commit ae36298

Please sign in to comment.