Skip to content

Commit

Permalink
Remove depthRange
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Oct 11, 2024
1 parent d20ca5d commit 207e7b6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion modules/core/src/passes/pick-layers-pass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export default class PickLayersPass extends LayersPass {
// https://github.com/mapbox/mapbox-gl-js/issues/7801
depthMask: true,
depthTest: true,
depthRange: [0, 1],
...layer.props.parameters
};
const {pickable, operation} = layer.props;
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/passes/shadow-pass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class ShadowPass extends LayersPass {
layerIndex: number,
viewport: Viewport
): Parameters {
return {...layer.props.parameters, blend: false, depthRange: [0, 1], depthTest: true};
return {...layer.props.parameters, blend: false, depthTest: true};

Check failure on line 85 in modules/core/src/passes/shadow-pass.ts

View workflow job for this annotation

GitHub Actions / test-python (3.8)

Object literal may only specify known properties, and 'depthTest' does not exist in type 'Parameters'.

Check failure on line 85 in modules/core/src/passes/shadow-pass.ts

View workflow job for this annotation

GitHub Actions / test-node

Object literal may only specify known properties, and 'depthTest' does not exist in type 'Parameters'.
}

shouldDrawLayer(layer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class CollisionFilterPass extends LayersPass {
}

protected getLayerParameters(layer: Layer, layerIndex: number, viewport: Viewport): Parameters {
return {...layer.props.parameters, blend: false, depthRange: [0, 1], depthTest: true};
return {...layer.props.parameters, blend: false, depthTest: true};
}

getShaderModuleProps() {
Expand Down

0 comments on commit 207e7b6

Please sign in to comment.