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) 465 B
import{S as e}from"./index-BPURObVq.esm.min.js";const r="decalFragment",d="#ifdef DECAL\n#ifdef GAMMADECAL\ndecalColor.rgb=toLinearSpace(decalColor.rgb);\n#endif\n#ifdef DECAL_SMOOTHALPHA\ndecalColor.a*=decalColor.a;\n#endif\nsurfaceAlbedo.rgb=mix(surfaceAlbedo.rgb,decalColor.rgb,decalColor.a);\n#endif\n";e.IncludesShadersStore[r]||(e.IncludesShadersStore[r]=d);const o={name:r,shader:d};export{o as d}; //# sourceMappingURL=decalFragment-DhmD-zCf.esm.min.js.map