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) 548 B
import{S as e}from"./index-BPURObVq.esm.min.js";import{h as r}from"./helperFunctions-Sht42MtG.esm.min.js";const n="rgbdDecodePixelShader";e.ShadersStore[n]||(e.ShadersStore[n]="varying vec2 vUV;uniform sampler2D textureSampler;\n#include<helperFunctions>\n#define CUSTOM_FRAGMENT_DEFINITIONS\nvoid main(void) \n{gl_FragColor=vec4(fromRGBD(texture2D(textureSampler,vUV)),1.0);}");const o=[r];for(const r of o)e.IncludesShadersStore[r.name]||(e.IncludesShadersStore[r.name]=r.shader); //# sourceMappingURL=rgbdDecode.fragment-C3k94seS.esm.min.js.map