diff --git a/examples/webgl_materials_texture_filters.html b/examples/webgl_materials_texture_filters.html index 1cb315cf90aad3..9c336f7fe649ba 100644 --- a/examples/webgl_materials_texture_filters.html +++ b/examples/webgl_materials_texture_filters.html @@ -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; diff --git a/examples/webgl_materials_texture_manualmipmap.html b/examples/webgl_materials_texture_manualmipmap.html index 738a665b069678..86e4d0b4f5d736 100644 --- a/examples/webgl_materials_texture_manualmipmap.html +++ b/examples/webgl_materials_texture_manualmipmap.html @@ -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 } ) );