Skip to content

Commit

Permalink
Pass through maskProps
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Sep 18, 2024
1 parent 92c6091 commit cbf20d8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/core/src/lib/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,10 @@ export default abstract class Layer<PropsT extends {} = {}> extends Component<
this.setModuleParameters({});

const {
// mask
maskChannels,
maskMap,
maskSources,
// shadow
shadowEnabled,
drawToShadowMap,
Expand All @@ -1105,6 +1109,12 @@ export default abstract class Layer<PropsT extends {} = {}> extends Component<
lightSources
} = moduleParameters;

const maskProps = {
maskChannels,
maskMap,
maskSources
};

const shadowProps = {
viewport,
shadowEnabled,
Expand Down Expand Up @@ -1137,6 +1147,7 @@ export default abstract class Layer<PropsT extends {} = {}> extends Component<

this.setShaderModuleProps({
// TODO Revisit whether this is necessary once all layers ported to UBO
mask: maskProps,
shadow: shadowProps,
terrain: terrainProps,
layer: {opacity},
Expand Down

0 comments on commit cbf20d8

Please sign in to comment.