Skip to content

PlaneGeometry with alphaToCoverage lacks transparency when rendered with CubeCamera #31009

@lambocorp

Description

@lambocorp

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.
Image

Reproduction steps

Code

// code goes here

Live example

Screenshots

No response

Version

175

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