@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.
25 lines • 740 B
JavaScript
// Do not edit.
import { ShaderStore } from "../Engines/shaderStore.js";
const name = "volumetricLightScatteringPassPixelShader";
const shader = `
varying vec2 vUV;
uniform sampler2D diffuseSampler;
void main(void)
{
vec4 diffuseColor=texture2D(diffuseSampler,vUV);if (diffuseColor.a<0.4)
discard;
gl_FragColor=vec4(0.0,0.0,0.0,1.0);}
`;
// Sideeffect
if (!ShaderStore.ShadersStore[name]) {
ShaderStore.ShadersStore[name] = shader;
}
/** @internal */
export const volumetricLightScatteringPassPixelShader = { name, shader };
//# sourceMappingURL=volumetricLightScatteringPass.fragment.js.map