Skip to content

Bloom Filter breaking Scene in Chrome - Cannot read properties of null (reading 'alpha') #240

Description

@jjjjjjjjjjjjjjjjacob

Problem

I'm building a website with Typescript Vite React, trying to use the bloom filter in a scene, and it throws the following error:
image

Here is the EffectComposer in the component's return statement:

// ...
        {/* NOTE: Causing null `alpha` error in Chrome */}
        <EffectComposer>
          <Bloom
            luminanceThreshold={0.3}
            luminanceSmoothing={0.5}
            mipmapBlur
            intensity={1.0}
          />
        </EffectComposer>
// ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions