Bläddra i källkod

Set .flipY to false (#23607)

WestLangley 3 år sedan
förälder
incheckning
1574137ee6
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/renderers/WebGLRenderTarget.js

+ 1 - 0
src/renderers/WebGLRenderTarget.js

@@ -28,6 +28,7 @@ class WebGLRenderTarget extends EventDispatcher {
 		this.texture = new Texture( image, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding );
 		this.texture.isRenderTargetTexture = true;
 
+		this.texture.flipY = false;
 		this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
 		this.texture.internalFormat = options.internalFormat !== undefined ? options.internalFormat : null;
 		this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;