Skip to content

Light color restoration algorithm produces awful results when using lightdir from lightgrid #324

@illwieckz

Description

@illwieckz

This use case occurs when the engine is attempting to do normal/specular compute using lightmap light color but lightgrid light direction:

lightgrid lightcolor restoration

lightgrid lightcolor restoration

lightgrid lightcolor restoration

See #299 about lightcolor restoration, #299 is the deluxemap counterpart of this bug.

The bug may also be related to #320.

We must find a better algorithm or a variant of it for that special use case if we want to support it.

We may want to support it for two reasons:

  1. reduce the complexity of the code, avoid intrusive hacky ifdefs everywhere.
  2. enable normal mapping on legacy maps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions