Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with transparent background #82

Open
titansmasher7 opened this issue Jul 26, 2022 · 2 comments
Open

Issue with transparent background #82

titansmasher7 opened this issue Jul 26, 2022 · 2 comments

Comments

@titansmasher7
Copy link

Hey there!

I have a problem with setting the background to solid black, I changed the 'transparent' to 'true' and set the background color of 'canvas' to solid black but it always has some kind of shadow over it and it's never solid black, it's more like dark dark grey if you know what I mean

How can I turn off this ' shadow? By the way, that's a problem only with a solid black background, when I set it to white it works perfectly.

Thank you for your help!

@MiracleCK
Copy link

MiracleCK commented Jul 26, 2022 via email

@cloydlau
Copy link

cloydlau commented Dec 1, 2022

Hello.

This will solve your problem:

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
</head>

<body>
  <canvas style="width: 100vw; height: 100vh;" />
  <script src="https://unpkg.com/[email protected]"></script>
  <script>
    WebGLFluid(document.querySelector('canvas'), {
      BLOOM: false,
    })
  </script>
</body>

</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants