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) 637 B
import{S as e}from"./index-Bw2N6w1y.esm.min.js";const r="iblCdfxPixelShader",t="#define PI 3.1415927\nvarying vUV: vec2f;var cdfy: texture_2d<f32>;@fragment\nfn main(input: FragmentInputs)->FragmentOutputs {var cdfyRes=textureDimensions(cdfy,0);var currentPixel=vec2u(fragmentInputs.position.xy);var cdfx: f32=0.0;for (var x: u32=1; x<=currentPixel.x; x++) {cdfx+=textureLoad(cdfy, vec2u(x-1,cdfyRes.y-1),0).x;}\nfragmentOutputs.color= vec4f( vec3f(cdfx),1.0);}";e.ShadersStoreWGSL[r]||(e.ShadersStoreWGSL[r]=t);const n={name:r,shader:t};export{n as iblCdfxPixelShaderWGSL}; //# sourceMappingURL=iblCdfx.fragment-D2c_sDIF.esm.min.js.map