Skip to content

Cache generated environment map #336

Closed

Description

@jsantell

Description

Currently any model that uses the default environment map will each generate their own, but they're all identical. IIRC the original intention was possibly to have multiple tints, or different parameters to tweak the default environment. Since that's not yet the case, we should probably cache it, probably in the TextureUtils for now.

Activity

  1. elalish commented on Jun 24, 2019

    @elalish
    Contributor

    @cdata, as I was debugging it seems this has already been fixed, as this is now cached. However, if we apply a PMREM pass to it, that is applied once for each model (using the same cached environment as input, but generating a new PMREM texture).

  2. self-assigned this
    on Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions