Skip to content

LayeredMaterial colorLayerEffects are broken #2684

@jailln

Description

@jailln

LayeredMaterial colorLayerEffects don't work anymore with realistic lightning.

Context

Steps to Reproduce

  1. add { realisticLightning: true } to the GlobeView constructor of the vector_tile_3d_mesh.html example
  2. open the example: the basemap is all black:
Image

Possible Cause/Fix/Solution

Commenting these lines in the example fixes the issue:

                effect_type: itowns.colorLayerEffects.removeLightColor,
                effect_parameter: 2.5,

Using removeWhiteColor produces the same effect, indicating that these effects don't work anymore. Also, this happens with realisticLightning on.

When fixing this bug, it may be a good thing to document these effects in the API doc at the same time.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions