# Order Independent Transparency and GL\_INVALID\_OPERATION errors

**URL:** <https://forum.babylonjs.com/t/order-independent-transparency-and-gl-invalid-operation-errors/31028>\
**Category:** Questions\
**Tags:** material\
**Created:** [June 3, 2022, 12:20am UTC](https://forum.babylonjs.com/t/order-independent-transparency-and-gl-invalid-operation-errors/31028 "2022-06-03T00:20:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jholmes](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jholmes/32/11697_2.png) [@jholmes](https://forum.babylonjs.com/u/jholmes)\
**Post date:** [June 3, 2022, 12:20am UTC](https://forum.babylonjs.com/t/order-independent-transparency-and-gl-invalid-operation-errors/31028/1 "2022-06-03T00:20:03Z")

</div>

Hey Guys… when I enable OIT, my application comes to a standstill and I start getting these errors:

GL\_INVALID\_OPERATION: Active draw buffers with missing fragment shader outputs

I can’t seem to reproduce this in the sandbox, but I’m trying.

The problem seems to be any material with transparency on them (because they render black), such as this:

const chunkMaterial = new PBRMaterial(‘ground’, context.scene);  
chunkMaterial.useAmbientOcclusionFromMetallicTextureRed = true;  
chunkMaterial.useRoughnessFromMetallicTextureGreen = true;  
chunkMaterial.useRoughnessFromMetallicTextureAlpha = false;  
chunkMaterial.transparencyMode = PBRMaterial.PBRMATERIAL\_ALPHATEST; // PBRMATERIAL\_ALPHABLEND  
chunkMaterial.useAlphaFromAlbedoTexture = false;  
chunkMaterial.maxSimultaneousLights = getMaxSimultaneiousLights(context);  
chunkMaterial.metallic = 0;  
chunkMaterial.roughness = 0.9;  
chunkMaterial.albedoTexture = new Texture(textures.albedo, context.scene);  
chunkMaterial.usePhysicalLightFalloff = false;  
chunk.material = chunkMaterial;

Again… I can’t seem to reproduce this, so I’m looking for hints where to go next (but I’ll keep trying). Already tried removing setting PBRMATERIAL\_ALPHATEST.

Version: a5.5.5  
Chrome: Version 101.0.4951.41 (Official Build) (64-bit)

Jerry

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [June 3, 2022, 12:46pm UTC](https://forum.babylonjs.com/t/order-independent-transparency-and-gl-invalid-operation-errors/31028/2 "2022-06-03T12:46:21Z")

</div>

Hello! Having a reproduction would be really helpful indeed, I’ll also tag @CraigFeldspar to keep an eye on this 😃

---

<div class="post-metadata">

**Author:** ![jholmes](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jholmes/32/11697_2.png) [@jholmes](https://forum.babylonjs.com/u/jholmes)\
**Post date:** [June 7, 2022, 7:43am UTC](https://forum.babylonjs.com/t/order-independent-transparency-and-gl-invalid-operation-errors/31028/3 "2022-06-07T07:43:09Z")

</div>

Still working on this!
