-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Closed as not planned
Closed as not planned
Copy link
Milestone
Description
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
Reproduction steps
Code
// code goes here
Live example
- jsfiddle-latest-release WebGLRenderer
- jsfiddle-dev WebGLRenderer
- jsfiddle-latest-release WebGPURenderer
- jsfiddle-dev WebGPURenderer
Screenshots
No response
Version
0.175.0
Device
Desktop
Browser
Chrome
OS
Linux
Metadata
Metadata
Assignees
Labels
No labels