Pārlūkot izejas kodu

Added offset and repeat properties to Texture. It'll be tricky to add support for this on CanvasRenderer but should be easy on WebGLRenderer.

Mr.doob 14 gadi atpakaļ
vecāks
revīzija
95c1727861
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      src/materials/Texture.js

+ 3 - 0
src/materials/Texture.js

@@ -16,6 +16,9 @@ THREE.Texture = function ( image, mapping, wrapS, wrapT, magFilter, minFilter )
 	this.magFilter = magFilter !== undefined ? magFilter : THREE.LinearFilter;
 	this.minFilter = minFilter !== undefined ? minFilter : THREE.LinearMipMapLinearFilter;
 
+	this.offset = new THREE.Vector2();
+	this.repeat = new THREE.Vector2( 1, 1 );
+
 	this.needsUpdate = false;
 
 };