@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.
22 lines (20 loc) • 750 B
JavaScript
import { S as ShaderStore } from './index-MZPybX0H.esm.js';
import { h as helperFunctions } from './helperFunctions-BVaVsPjM.esm.js';
// Do not edit.
const name = "rgbdEncodePixelShader";
const shader = `varying vec2 vUV;uniform sampler2D textureSampler;
void main(void)
{gl_FragColor=toRGBD(texture2D(textureSampler,vUV).rgb);}`;
// Sideeffect
if (!ShaderStore.ShadersStore[name]) {
ShaderStore.ShadersStore[name] = shader;
}
const includes = [helperFunctions];
for (const inc of includes) {
if (!ShaderStore.IncludesShadersStore[inc.name]) {
ShaderStore.IncludesShadersStore[inc.name] = inc.shader;
}
}
//# sourceMappingURL=rgbdEncode.fragment-XeL5bli4.esm.js.map