Skip to content

WebGLRenderer: Render target discrepancy between Chrome and Firefox. #31041

@lambocorp

Description

@lambocorp

Description

Experiencing two different results when opening project in Chrome versus Firefox.

I have a sky object and a clone of it.
(1) render the sky clone to a target.

const renderTarget = new THREE.WebGLRenderTarget(window.innerWidth, window.innerHeight, { 
	type: THREE.HalfFloatType,
})

(2) render the main scene containing the sky object

// all other objects in the main scene, 
// for example, the red cube in the image below, sample the render target with:
uniform sampler2D renderTarget;
// ...
vec2 screenUV = gl_FragCoord.xy / resolution.xy;
color = texture(renderTarget, screenUV);

In Firefox, the samples align perfectly with the background.
In Chrome, the perspective is warped.
r175

Image

Reproduction steps

Code

// code goes here

Live example

Screenshots

No response

Version

0.175.0

Device

Desktop

Browser

Chrome

OS

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions