Procházet zdrojové kódy

- UV 1,1 trying to access unexisting pixels on the texture

Mr.doob před 15 roky
rodič
revize
c4d39ba6ae
3 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 0 0
      build/three.js
  2. 0 0
      build/three_debug.js
  3. 4 4
      src/renderers/CanvasRenderer.js

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
build/three.js


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
build/three_debug.js


+ 4 - 4
src/renderers/CanvasRenderer.js

@@ -266,8 +266,8 @@ THREE.CanvasRenderer = function () {
 					} else if ( material instanceof THREE.MeshBitmapUVMappingMaterial ) {
 
 						bitmap = material.bitmap;
-						bitmapWidth = bitmap.width;
-						bitmapHeight = bitmap.height;
+						bitmapWidth = bitmap.width - 1;
+						bitmapHeight = bitmap.height - 1;
 
 						/* DEBUG
 						if ( !element.uvs[ 0 ] || !element.uvs[ 1 ] || !element.uvs[ 2 ]) {
@@ -406,8 +406,8 @@ THREE.CanvasRenderer = function () {
 					} else if ( material instanceof THREE.MeshBitmapUVMappingMaterial ) {
 
 						bitmap = material.bitmap;
-						bitmapWidth = bitmap.width;
-						bitmapHeight = bitmap.height;
+						bitmapWidth = bitmap.width - 1;
+						bitmapHeight = bitmap.height - 1;
 
 						/* DEBUG
 						if ( !element.uvs[ 0 ] || !element.uvs[ 1 ] || !element.uvs[ 2 ] || !element.uvs[ 3 ]) {

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů