Pārlūkot izejas kodu

Set .flipY to false (#23607)

WestLangley 3 gadi atpakaļ
vecāks
revīzija
1574137ee6
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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;