UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

13 lines 586 B
// Do not edit. import { ShaderStore } from "../Engines/shaderStore.js"; const name = "oitBackBlendPixelShader"; const shader = `var uBackColor: texture_2d<f32>;@fragment fn main(input: FragmentInputs)->FragmentOutputs {fragmentOutputs.color=textureLoad(uBackColor,vec2i(fragmentInputs.position.xy),0);if (fragmentOutputs.color.a==0.0) {discard;}} `; // Sideeffect if (!ShaderStore.ShadersStoreWGSL[name]) { ShaderStore.ShadersStoreWGSL[name] = shader; } /** @internal */ export const oitBackBlendPixelShaderWGSL = { name, shader }; //# sourceMappingURL=oitBackBlend.fragment.js.map