Skip to content

The p5.erase() function does not work as expected for WEBGL #5448

Open
@gmaster350

Description

@gmaster350

Most appropriate sub-area of p5.js?

  • Color
  • WebGL

Details about the bug:

The p5.erase() function does not work as expected for WEBGL;
it will turn part of the canvas white, but not transparent.

  • p5.js version: 1.4.0 ( current, as of posting )
  • Chrome, Firefox, Edge ( all current versions as of posting )
  • Windows 10 64-Bit
  • Steps to reproduce this:
    Using the p5.erase() function before any 3D drawing method. E.g., plane(), box(), sphere()

I have made simple sketch demonstrating the issue here ( see lines 45-48 ):
https://editor.p5js.org/s5046715/sketches/VcMfSNV1o
There is a red div positioned behind the canvas ( with the same dimensions as the canvas ).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Implement 2D feature to WebGL

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions