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.

14 lines 730 B
// Do not edit. import { ShaderStore } from "../Engines/shaderStore.js"; const name = "fluidRenderingParticleThicknessPixelShader"; const shader = `uniform particleAlpha: f32;varying uv: vec2f;@fragment fn main(input: FragmentInputs)->FragmentOutputs {var normalxy: vec2f=input.uv*2.0-1.0;var r2: f32=dot(normalxy,normalxy);if (r2>1.0) {discard;} var thickness: f32=sqrt(1.0-r2);fragmentOutputs.color=vec4f(vec3f(uniforms.particleAlpha*thickness),1.0);} `; // Sideeffect if (!ShaderStore.ShadersStoreWGSL[name]) { ShaderStore.ShadersStoreWGSL[name] = shader; } /** @internal */ export const fluidRenderingParticleThicknessPixelShaderWGSL = { name, shader }; //# sourceMappingURL=fluidRenderingParticleThickness.fragment.js.map