UNPKG

@babylonjs/viewer

Version:

The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.

3 lines (2 loc) 569 B
import{S as e}from"./index-BPURObVq.esm.min.js";const r="iblCdfxPixelShader",i="precision highp sampler2D;\n#define PI 3.1415927\nvarying vec2 vUV;uniform sampler2D cdfy;void main(void) {ivec2 cdfyRes=textureSize(cdfy,0);ivec2 currentPixel=ivec2(gl_FragCoord.xy);float cdfx=0.0;for (int x=1; x<=currentPixel.x; x++) {cdfx+=texelFetch(cdfy,ivec2(x-1,cdfyRes.y-1),0).x;}\ngl_FragColor=vec4(vec3(cdfx),1.0);}";e.ShadersStore[r]||(e.ShadersStore[r]=i);const c={name:r,shader:i};export{c as iblCdfxPixelShader}; //# sourceMappingURL=iblCdfx.fragment-DgNFrjyk.esm.min.js.map