-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Closed as not planned
Closed as not planned
Copy link
Milestone
Description
Description
I use MeshStandardMaterial with alphaToCoverage for transparency on a PlaneGeometry, I render the scene and the mesh has transparency, but if I use CubeCamera to render the same scene to a render target, the object lacks transparency.
I can work on a demo that reproduces the issue if you cannot reproduce.
Version: r175
camera.getWorldPosition(cameraWorldPos);
cubeCamera.position.copy(cameraWorldPos);
cubeCamera.update(renderer, scene);
const useShadows = renderer.shadowMap.enabled;
renderer.shadowMap.enabled = false;
let t = pmremGen.fromCubemap(cubeRenderTarget.texture);
scene.environment = t.texture;
renderer.shadowMap.enabled = useShadows;
Below: plants on the hill are rendered with transparency, and the same scene rendered to target with CubeCamera and applied as an envMap to the water plane, lacking transparency.

Reproduction steps
Code
// code goes hereLive example
- jsfiddle-latest-release WebGLRenderer
- jsfiddle-dev WebGLRenderer
- jsfiddle-latest-release WebGPURenderer
- jsfiddle-dev WebGPURenderer
Screenshots
No response
Version
175
Device
Desktop
Browser
Chrome
OS
Linux
Metadata
Metadata
Assignees
Labels
No labels