Skip to content

Commit

Permalink
Merge pull request #12213 from squrki/fix_firefox_oit
Browse files Browse the repository at this point in the history
Reverting Firefox OIT Fix #4815
  • Loading branch information
ggetz authored Sep 25, 2024
2 parents bbd6afd + e4cce0e commit 355702e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

- Use first geometryBuffer if no best match found in I3SNode [#12132](https://github.com/CesiumGS/cesium/pull/12132)
- Update type definitions to allow undefined for optional parameters [#12193](https://github.com/CesiumGS/cesium/pull/12193)
- Reverts Firefox OIT temporary fix [#4815] and Firefox test failure fix [#5047]
- Fixed noise in ambient occlusion post process. [#12201](https://github.com/CesiumGS/cesium/pull/12201)

### 1.121.1 - 2024-09-04
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,3 +412,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
- [Adam Wirth](https://github.com/adamwirth)
- [Javier Sanchez](https://github.com/jvrjsanchez)
- [Jérôme Fayot](https://github.com/jfayot)
- [Kirn Kim](https://github.com/squrki)
10 changes: 2 additions & 8 deletions packages/engine/Source/Scene/OIT.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,12 @@ function updateTextures(oit, context, width, height) {
pixelDatatype: PixelDatatype.FLOAT,
});

// Use zeroed arraybuffer instead of null to initialize texture
// to workaround Firefox. Only needed for the second color attachment.
const source = new Float32Array(width * height * 4);
oit._revealageTexture = new Texture({
context: context,
pixelFormat: PixelFormat.RGBA,
pixelDatatype: PixelDatatype.FLOAT,
source: {
arrayBufferView: source,
width: width,
height: height,
},
width: width,
height: height,
flipY: false,
});
}
Expand Down
15 changes: 4 additions & 11 deletions packages/engine/Specs/Renderer/FramebufferSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,22 +591,15 @@ describe(
return;
}

const source = new Uint8Array(4);
const colorTexture0 = new Texture({
context: context,
source: {
arrayBufferView: source,
width: 1,
height: 1,
},
width: 1,
height: 1,
});
const colorTexture1 = new Texture({
context: context,
source: {
arrayBufferView: source,
width: 1,
height: 1,
},
width: 1,
height: 1,
});
framebuffer = new Framebuffer({
context: context,
Expand Down

0 comments on commit 355702e

Please sign in to comment.