Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/tests/rtt-dimension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ export default async function test({ renderer, testRoot }: ExampleSettings) {
width: 100,
height: 100,
texture: nestedRTTNode1.texture,
// Flip every other one of them
textureOptions: {
flipY: i % 2 === 1,
},
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/renderers/webgl/WebGlCoreRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ export class WebGlCoreRenderer extends CoreRenderer {
const flipX = textureOptions?.flipX ?? false;
let flipY = textureOptions?.flipY ?? false;

// always flip Y for render textures
// always flip flipY for render textures
if (texture instanceof RenderTexture) {
flipY = true;
flipY = !flipY;
}

let texCoordX1 = 0;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.