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.

12 lines 643 B
// Do not edit. import { ShaderStore } from "../Engines/shaderStore.js"; const name = "fluidRenderingParticleThicknessPixelShader"; const shader = `uniform float particleAlpha;varying vec2 uv;void main(void) {vec3 normal;normal.xy=uv*2.0-1.0;float r2=dot(normal.xy,normal.xy);if (r2>1.0) discard;float thickness=sqrt(1.0-r2);glFragColor=vec4(vec3(particleAlpha*thickness),1.0);} `; // Sideeffect if (!ShaderStore.ShadersStore[name]) { ShaderStore.ShadersStore[name] = shader; } /** @internal */ export const fluidRenderingParticleThicknessPixelShader = { name, shader }; //# sourceMappingURL=fluidRenderingParticleThickness.fragment.js.map