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) 687 B
import{S as e}from"./index-BPURObVq.esm.min.js";import{h as r}from"./helperFunctions-T6LSXWWf.esm.min.js";const t="rgbdDecodePixelShader";e.ShadersStoreWGSL[t]||(e.ShadersStoreWGSL[t]="varying vUV: vec2f;var textureSamplerSampler: sampler;var textureSampler: texture_2d<f32>;\n#include<helperFunctions>\n#define CUSTOM_FRAGMENT_DEFINITIONS\n@fragment\nfn main(input: FragmentInputs)->FragmentOutputs {fragmentOutputs.color=vec4f(fromRGBD(textureSample(textureSampler,textureSamplerSampler,input.vUV)),1.0);}");const n=[r];for(const r of n)e.IncludesShadersStoreWGSL[r.name]||(e.IncludesShadersStoreWGSL[r.name]=r.shader); //# sourceMappingURL=rgbdDecode.fragment-sU55jbwN.esm.min.js.map