PageSourceSearch

https://balloon99-kj7qgchv.manus.space/assets/grain.fragment-Bwnf7zc6.js

js balloon99-kj7qgchv.manus.space collected 2026-10-03 05:01:38 UTC 790 bytes, 6 lines download raw bytes

1import{p as e}from"./fileTools.pure-O3hflNMy.js";import{h as n}from"./helperFunctions-D7-zXdUR.js";const o="grainPixelShader",a=`#include<helperFunctions>
2uniform sampler2D textureSampler; 
3uniform float intensity;uniform float animatedSeed;varying vec2 vUV;
4#define CUSTOM_FRAGMENT_DEFINITIONS
5void main(void)
6{gl_FragColor=texture2D(textureSampler,vUV);vec2 seed=vUV*(animatedSeed);float grain=dither(seed,intensity);float lum=getLuminance(gl_FragColor.rgb);float grainAmount=(cos(-PI+(lum*PI*2.))+1.)/2.;gl_FragColor.rgb+=grain*grainAmount;gl_FragColor.rgb=max(gl_FragColor.rgb,0.0);}`;e.ShadersStore[o]||(e.ShadersStore[o]=a);const t=[n];for(const r of t)e.IncludesShadersStore[r.name]||(e.IncludesShadersStore[r.name]=r.shader);const s={name:o,shader:a};export{s as grainPixelShader};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.