GeometryBufferRenderer: Fix problem with alpha tested objects
@@ -172,6 +172,7 @@
- Playground didn't work if query params were added to the URL ([RaananW](https://github.com/RaananW))
- Fixed Path3D `_distances` / length computation ([Poolminer](https://github.com/Poolminer))
- Make sure bone matrices are up to date when calling `TransformNode.attachToBone` ([Popov72](https://github.com/Popov72))
+- Fix display problem with transparent objects and SSAO2 pipeline (bug in the `GeometryBufferRenderer`) ([Popov72](https://github.com/Popov72))
## Breaking changes
@@ -216,7 +216,7 @@ export class GeometryBufferRenderer {
// Alpha test
if (material) {
let needUv = false;
- if (material.needAlphaBlending()) {
+ if (material.needAlphaTesting()) {
defines.push("#define ALPHATEST");
needUv = true;
}