PageSourceSearch

https://balloon99-kj7qgchv.manus.space/assets/glowMapGeneration.fragment-FDi7NBIb.js

js balloon99-kj7qgchv.manus.space collected 2026-10-03 05:01:25 UTC 2,028 bytes, 63 lines download raw bytes

1import{p as e}from"./fileTools.pure-O3hflNMy.js";import{h as r}from"./helperFunctions-D7-zXdUR.js";import{s as n,u as f}from"./tier3-babylon-z6xMXPxH.js";import"./index-DY6XcbtQ.js";import"./smartArray-B7wVGkJ5.js";import"./tools.pure-PAKPbutq.js";import"./thinEngine-DI9LWTqR.js";const a="glowMapGenerationPixelShader",o=`#if defined(DIFFUSE_ISLINEAR) || defined(EMISSIVE_ISLINEAR)
2#include<helperFunctions>
3#endif
4#ifdef DIFFUSE
5varying vec2 vUVDiffuse;uniform sampler2D diffuseSampler;
6#endif
7#ifdef OPACITY
8varying vec2 vUVOpacity;uniform sampler2D opacitySampler;uniform float opacityIntensity;
9#endif
10#ifdef EMISSIVE
11varying vec2 vUVEmissive;uniform sampler2D emissiveSampler;
12#endif
13#ifdef VERTEXALPHA
14varying vec4 vColor;
15#endif
16uniform vec4 glowColor;uniform float glowIntensity;
17#include<clipPlaneFragmentDeclaration>
18#define CUSTOM_FRAGMENT_DEFINITIONS
19void main(void)
20{
21#include<clipPlaneFragment>
22vec4 finalColor=glowColor;
23#ifdef DIFFUSE
24vec4 albedoTexture=texture2D(diffuseSampler,vUVDiffuse);
25#ifdef DIFFUSE_ISLINEAR
26albedoTexture=toGammaSpace(albedoTexture);
27#endif
28#ifdef GLOW
29finalColor.a*=albedoTexture.a;
30#endif
31#ifdef HIGHLIGHT
32finalColor.a=albedoTexture.a;
33#endif
34#endif
35#ifdef OPACITY
36vec4 opacityMap=texture2D(opacitySampler,vUVOpacity);
37#ifdef OPACITYRGB
38finalColor.a*=getLuminance(opacityMap.rgb);
39#else
40finalColor.a*=opacityMap.a;
41#endif
42finalColor.a*=opacityIntensity;
43#endif
44#ifdef VERTEXALPHA
45finalColor.a*=vColor.a;
46#endif
47#ifdef ALPHATEST
48if (finalColor.a<ALPHATESTVALUE)
49discard;
50#endif
51#ifdef EMISSIVE
52vec4 emissive=texture2D(emissiveSampler,vUVEmissive);
53#ifdef EMISSIVE_ISLINEAR
54emissive=toGammaSpace(emissive);
55#endif
56gl_FragColor=emissive*finalColor*glowIntensity;
57#else
58gl_FragColor=finalColor*glowIntensity;
59#endif
60#ifdef HIGHLIGHT
61gl_FragColor.a=glowColor.a;
62#endif
63}`;e.ShadersStore[a]||(e.ShadersStore[a]=o);const l=[r,n,f];for(const i of l)e.IncludesShadersStore[i.name]||(e.IncludesShadersStore[i.name]=i.shader);const I={name:a,shader:o};export{I as glowMapGenerationPixelShader};

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.