Skip to content

Commit

Permalink
fix(webgl): enable polygon offset with depthBias (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Apr 2, 2024
1 parent eac9e4a commit 46045a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/webgl/src/adapter/converters/device-parameters.ts
Expand Up @@ -150,6 +150,7 @@ export function setDeviceParameters(device: Device, parameters: Parameters) {
}

if (parameters.depthBias !== undefined) {
gl.enable(GL.POLYGON_OFFSET_FILL);
gl.polygonOffset(parameters.depthBias, parameters.depthBiasSlopeScale || 0);
}

Expand Down

0 comments on commit 46045a1

Please sign in to comment.